I know that (for example in Debian) one could use dpkg-reconfigure tzdata
to change the timezone of the system but I am wondering how one could change the user timezone (if Linux/Unix supports such an idea at all).
I normally work on the server remotely through ssh and given that the server works with UTC internally (files, ...) and timezones are rather superficial, I would like to see the times in my desired timezone depending on where I am connecting from. Is this possible?
Use the TZ
environment variable. E.g.:
bash$ export TZ=US/Pacific
bash$ date
Mon Mar 3 00:31:17 PST 2014
bash$ export TZ=US/Eastern
bash$ date
Mon Mar 3 03:33:06 EST 2014
The possible values for TZ
are in the directory /usr/share/zoneinfo
(see, for example, the existence of /usr/share/zoneinfo/US/Pacific
)
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments