#!/bin/sh
#
#    Copyright (c) 2002-6 Brocade Communications Systems, Inc.
#    All rights reserved.
#
#    File name:   tsTZ.sh.in
#    Module name: fabos/src/ts
#
#    This script is used by the tsTimeZone command to
#    output the commands for the parent shell
#    This is required to set TZ environment variable
#    in the current session

if FABOS_SWITCHNO=0 /fabos/cliexec/config get ts.tz 5 >/dev/null
then
	echo unset TZ
elif [ -x /fabos/cliexec/tsGetEnvTZ ]; then
	TZ=`/fabos/cliexec/tsGetEnvTZ $FABOS_SWITCHNO`
	echo export "TZ='$TZ'"
fi
