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?
Best Answer
Use the
TZ
environment variable. E.g.:The possible values for
TZ
are in the directory/usr/share/zoneinfo
(see, for example, the existence of/usr/share/zoneinfo/US/Pacific
)