Setting timezones

Robert Withrow witr at rwwa.com
Fri Nov 2 17:27:36 CET 2007


Sorry to reply to my own message, but I discovered that /etc/profile
sets the TZ environment variable if /etc/localtime doesn't exist.  If I
unset TZ (or log out and in again) the below works.  Maybe I'll put this
into the Wiki.

Robert Withrow wrote:
> I've searched the Wiki and the mailing lists and the Internet in
> general, and what I see for setting the timezone on my Neo is to either
> install "timezones" or "tzdata" and the link the appropriate thing into
> /etc/localtime.  Neither way works for me.
>
> This is with tzdata, but I get the same result using timezones and
> timezone-america:
>
> root at fic-gta01:/usr/share/zoneinfo$ date
> Thu Nov  1 23:48:10 UTC 2007
> root at fic-gta01:/usr/share/zoneinfo$ ipkg install tzdata-americas
> tzdata-posix
> Installing tzdata-americas (2007e-r0) to root...
> Downloading
> http://buildhost.openmoko.org/OM2007.2/tmp/deploy/glibc/ipk/armv4t/tzdata-americas_2007e-r0_armv4t.ipk
> Installing tzdata-posix (2007e-r0) to root...
> Downloading
> http://buildhost.openmoko.org/OM2007.2/tmp/deploy/glibc/ipk/armv4t/tzdata-posix_2007e-r0_armv4t.ipk
> Configuring tzdata-americas
> Configuring tzdata-posix
> root at fic-gta01:/usr/share/zoneinfo$ ln -s
> /usr/share/zoneinfo/posix/US/Eastern /etc/localtime
> root at fic-gta01:/usr/share/zoneinfo$ date
> Thu Nov  1 23:49:19 UTC 2007
> root at fic-gta01:/usr/share/zoneinfo$ ls -l /etc/localtime
> lrwxrwxrwx    1 root     root           36 Nov  1 23:49 /etc/localtime
> -> /usr/share/zoneinfo/posix/US/Eastern
> root at fic-gta01:/usr/share/zoneinfo$ /bin/date
> Thu Nov  1 23:50:23 UTC 2007
>
> What stupid mistake am I making?
>
>   

-- 
Robert Withrow, R.W. Withrow Associates, Swampscott, MA, USA



More information about the device-owners mailing list