****Changing the Time Zone

Dale Farnsworth dale at farnsworth.org
Wed Sep 17 08:49:22 MST 2008


> Really?  So why when I am logged in as user1 and I run date -u and
> request the time I get UTC, but when I then su - and ask for the time I
> get MST and if I date -u as root and login as user2 I still get MST and
> on reboot everything is back as MST?  I can literally use date to set a
> different time zone for each user and see it just the time zone set for
> that user by changing users.

Ah, in your message, you said time. I now see that you meant
timezone.  Time is system-wide and managed by the kernel.
The kernel has no concept of timezone, it's up to each application
to add a timezone offset to the system time.  I see elsewhere that
you found how to set it for libc.

-Dale


More information about the PLUG-discuss mailing list