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: (5) </ 1 2 [3] 4 5 >/

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

reply to topic new topic new poll
Topic: ntp time server select ?, how do I configure the time server?< Next Oldest | Next Newest >
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Mar. 01 2008,18:07 QUOTE

Quote
Why not remaster then with your file?

- I tried copying the time file for GMT+4 to /opt and renaming it "localtime", then:
Code Sample
$ sudo gettime.lua
Requesting time from: time-nw.nist.gov
Sat Mar  1 17:59:50 UTC 2008

At 21:59 local time, this set the clock to 00:59pm - not being used to this am/pm stuff, I'm not totally sure whether that means 12:59 or 00:59. Anyway, it isn't 21:59...
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Mar. 01 2008,18:46 QUOTE

Afaik, am/pm does not have 00: and only 12:
so something could be wrong...?
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Mar. 01 2008,18:53 QUOTE

DSL uses zoneinfo files.
You can find a complete list here/

DSL also has zump and zic needed to process/setup zoneinfo files.

Download tzdata2007k.tar.gz to a working directory, unpack,  and then use zic  to convert to a format Linux/DSL uses.

You can "grep -i" to search for your location in the various regions (after you have unpacked them).
Once you use zic they will no longer be readable.

HTH


Edited by roberts on Mar. 01 2008,18:55
Back to top
Profile PM WEB 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Mar. 01 2008,20:04 QUOTE

isn't localtime supposed to be in /etc by the way?

--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Mar. 02 2008,09:42 QUOTE

Quote
Afaik, am/pm does not have 00: and only 12:
so something could be wrong...?

- it actually said a couple of minutes later - 01:01pm - so the mistake was made by me subtracting a couple of minutes to "avoid confusion".

Quote
isn't localtime supposed to be in /etc by the way?

- well:

/usr/share/zoneinfo/localtime -> /etc/localtime
and
/etc/timezone -> /KNOPPIX/etc/timezone -> /opt/timezone

...so I wasn't sure which one to use. I guess /opt/timezone uses the bootcode? Which one should I add to my backup (assuming I ever get this to work)?

Quote
DSL uses zoneinfo files.
You can find a complete list here/

DSL also has zump and zic needed to process/setup zoneinfo files.

Download tzdata2007k.tar.gz to a working directory, unpack,  and then use zic  to convert to a format Linux/DSL uses.

You can "grep -i" to search for your location in the various regions (after you have unpacked them).
Once you use zic they will no longer be readable.

- I thought GMT+4 was a zoneinfo file, it is included in the latest tzdata2007k.tar.gz file from your link (thanks BTW). Also from tzdata2007k.tar.gz:
Quote
# We use POSIX-style signs in the Zone names and the output abbreviations,
# even though this is the opposite of what many people expect.
# POSIX has positive signs west of Greenwich, but many people expect
# positive signs east of Greenwich.  For example, TZ='Etc/GMT+4' uses
# the abbreviation "GMT+4" and corresponds to 4 hours behind UTC
# (i.e. west of Greenwich) even though many people would expect it to
# mean 4 hours ahead of UTC (i.e. east of Greenwich).

- which explains some of my confusion...

I tried zic and zdump, but didn't get the hang of the syntax yet:
Code Sample
$ sudo zic -l asia/placename

...doesn't seem to write the localtime file for "placename" and using only asia gives the whole nine yards in localtime and still in a readable format??
Back to top
Profile PM 
20 replies since Feb. 28 2008,01:49 < Next Oldest | Next Newest >

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

Pages: (5) </ 1 2 [3] 4 5 >/
reply to topic new topic new poll
Quick Reply: ntp time server select ?

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