Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ 1 [2] 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: time is wrong, despite time zone set via tzconfig, always boots with the wrong time< Next Oldest | Next Newest >
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: June 22 2007,00:26 QUOTE

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?
Back to top
Profile PM WEB 
Guest
Unregistered






Posted: June 22 2007,00:33 QUOTE

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 :-).
Back to top
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: June 22 2007,09:58 QUOTE

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
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: June 22 2007,14:26 QUOTE

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.
Back to top
Profile PM WEB 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: June 27 2007,02:25 QUOTE

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]
Back to top
Profile PM 
11 replies since June 21 2007,18:51 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ 1 [2] 3 >/
reply to topic new topic new poll
Quick Reply: time is wrong, despite time zone set via tzconfig

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code