Hi,
A server runs on EDT. Can I set a user with time-zone GMT without changing the server time?
regards,
Roshni
Hi,
A server runs on EDT. Can I set a user with time-zone GMT without changing the server time?
regards,
Roshni
Yes, just change the environment variable "TZ". The systemwide setting is stored in "/etc/environment", but can be overridden in the users profile.
You can even test your new setting on a per-command basis. Notice that the setting of the TZ variable changes in the invoked subshell only in the transcript below:
bakunin@aix: print $TZ
MEZ-1MESZ-2,M3.5.0/02:00:00,M10.5.0/03:00:00
bakunin@aix: date
Wed Jun 23 10:24:54 MESZ 2010
bakunin@aix: (TZ=GMT; date)
Wed Jun 23 08:25:04 GMT 2010
bakunin@aix: (TZ=CUT-15; date)
Wed Jun 23 23:25:06 CUT 2010
bakunin@aix: date
Wed Jun 23 10:25:07 MESZ 2010
I hope this helps.
bakunin