DSL Embedded :: time is wrong, despite time zone set via tzconfig



Ah, perhaps it is the special character "/" that the bat file doesn't like. My windows aren't big enough to really run Qemu well. Maybe if you escape it?
I don't think that's the problem.  When it actually comes up, and I type date, it correctly says PDT.  So, it's catching the right stuff.  It's just that the time is wrong.

Perhaps QEMU is not catching the fact that the host (Windows XP) is in the PDT time zone.  Or something like that.  Anyway, it's exactly 3 hours off, which makes me think that something thinks that I'm on the east coast :-).

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

The offset method as you are trying to use is not supported in DSL.

Witness the fact, that to include all possible zoneinfo, as in Knoppix 3.4 is 1.6MB versus the limited zoneinfo by named zones is only 43k  in DSL.

We have had the debate about which method to use in the past. In fact DSL originally only had EDT timezone. Later, I added in the US timezones. And finally the DSL community suggested that I at least add the named zones as specifically specified within knoppix-autoconfg boot options. This explains the what and why of DSL timezones. You can see such zones available by perusing /usr/share/zoneinfo/  

Perhaps an extension could be made from the original Knoppix /usr/share/zoneinfo, but it would need to be the complement otherwise it would overwrite the new daylight saving time rules which are in DSL.

robertakit: I noticed from your other thread that you were using qemu with -localtime AND using tz= ... perhaps only using either one will solve your problem
Quote
-localtime      set the real time clock to local time [default=utc]

Next Page...
original here.