Juanito
Group: Members
Posts: 1601
Joined: Sep. 2005 |
|
Posted: June 22 2007,09:58 |
|
I've been struggling with the logic of this for a while now:Code Sample | # gettime.lua Requesting time from: time-nw.nist.gov Fri Jun 22 09:33:47 UTC 2007 [this is correct]
# date Fri Jun 22 05:43:46 EDT 2007 |
But, when I try and enter the correct time zone:Code Sample | # tz=GMT+4 # date Fri Jun 22 05:44:13 EDT 2007 |
or:Code Sample | # tzselect /usr/bin/tzselect: line 23: /usr/share/zoneinfo/iso3166.tab: No such file or directory /usr/bin/tzselect: time zone files are not set up correctly |
We could save 5,862 bytes in DSL by deleting tzselect...
Finally, if I load libc6, I get this:Code Sample | # tzconfig ... Name: [] GMT+4 Your default time zone is set to 'Etc/GMT+4'. Local time is now: Fri Jun 22 05:49:53 GMT+4 2007. [incorrect] Universal Time is now: Fri Jun 22 09:49:53 UTC 2007. [correct]
# date Fri Jun 22 05:51:00 GMT+4 2007 |
Needless to say, if my timezone is GMT+4, the local time should be 13:49...
Note:Code Sample | # cat /etc/default/rcS
TMPTIME=0 SULOGIN=no DELAYLOGIN=yes UTC=no [i.e. hwclock=localtime] VERBOSE=yes EDITMOTD=no FSCKFIX=no |
|