I have

export TZ="/usr/share/zoneinfo/Europe/London"

in my .bashrc file, but the following output the time in UTC (GMT)

export TM=`date +%H%M%S`
export DTTM="`date +%a\ %F\ %T\ %Z`"

I believe you should just export the time zone, not the full path:

export TZ="Europe/London"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.