LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Time Zone patch (http://www.linuxquestions.org/questions/slackware-14/time-zone-patch-516681/)

diskoe 01-05-2007 02:03 PM

Time Zone patch
 
Because the start/end dates for Daylight Savings Time is changing this year... Does anyone know when we'll see a patch to update our time zone files?

Looks like Slackware uses the time zone files from glibc.

Other operating systems (Win XP, Sun Solaris) I work with are already patched. I'm just waiting for Linux now.

bitva 01-05-2007 02:46 PM

Dunno. If you're really worried you can setup ntp and have it look at time servers in your area for the update(s)

diskoe 01-05-2007 05:41 PM

I've got NTP running already. But this won't resolve the time zone issue.

The computer needs to know when DST starts and ends. The time zone file defines this.

regis_n_bits 01-05-2007 06:06 PM

I believe that Slack 11.0 already has the latest time zone files, which include the upcoming change in dates for Daylight Saving Time (where the time of switch time will be in March and November from 2007 and up).

If you want to see the dates in a zonename file use the zdump command. You use this utility to on the '/etc/localtime' files, or on any of the files in the '/usr/share/zoneinfo' directory.

For example, to see the dates in your /etc/localtime use the command:
Code:

# zdump -v /etc/localtime

bsdunix 01-05-2007 07:14 PM

Quote:

Originally Posted by regis_n_bits
If you want to see the dates in a zonename file use the zdump command

Thanks! That's another command I learned. :)

diskoe 01-05-2007 08:03 PM

WOW, Thanks for that command! Exactly what I needed. The time zone file starts at the year 1901! Very cool.

markys123451 01-11-2007 07:43 AM

Glad to have found this.

As for my machines that are older slack, I'll have to update the localtime file on there I suppose.


:rolleyes:

kkiedrowski 01-11-2007 03:12 PM

I hate to be dumb...but i feel like I am right now. How can I update the timezone files on my 10.2 install?

regis_n_bits 01-11-2007 05:54 PM

You have a couple of options:
1) Upgrade to Slack 11.0
2) Use the "zic" command to generate new timezone files (see the man page for zic).

If you are going to use zic, you'll need the latest timezone rules, which you can get from the latest source code tarball for the glibc library (search the www.gnu.org site). The rules will be in timezone subdirectory.

Or you can get the latest rules from this website http://www.twinsun.com/tz/tz-link.htm . The FTP link will list a file called something like "tzdata2006p.tar.gz", which also contains the complete rules.

Then to generate the latest timezone files for North America you would do something like this:
Code:

# zic -d /tmp/zoneinfo northamerica
After this is done, copy the generated files from "/tmp/zoneinfo" to the "usr/share/zoneinfo" directory, and then run "timeconfig" to select your timezone.

daystrom 01-26-2007 09:33 PM

Thanks!
 
regis_n_bits:

Thanks for the detailed directions. Worked like a charm on my Slack 10.0 box.

Todd

petcherd 02-02-2007 05:46 PM

It worked on my menagerie of Slack boxen including one as old as SlackWare 7.1

I only wish Windows was this easy.

H_TeXMeX_H 02-02-2007 06:22 PM

Quote:

Originally Posted by petcherd
It worked on my menagerie of Slack boxen including one as old as SlackWare 7.1

I only wish Windows was this easy.

I prefer Window$ NOT to be easy ... that way I have yet another reason never to use it again :)

Hangdog42 02-03-2007 07:30 AM

Quote:

Originally Posted by regis_n_bits
You have a couple of options:
1) Upgrade to Slack 11.0
2) Use the "zic" command to generate new timezone files (see the man page for zic).

If you are going to use zic, you'll need the latest timezone rules, which you can get from the latest source code tarball for the glibc library (search the www.gnu.org site). The rules will be in timezone subdirectory.

Or you can get the latest rules from this website http://www.twinsun.com/tz/tz-link.htm . The FTP link will list a file called something like "tzdata2006p.tar.gz", which also contains the complete rules.

Then to generate the latest timezone files for North America you would do something like this:
Code:

# zic -d /tmp/zoneinfo northamerica
After this is done, copy the generated files from "/tmp/zoneinfo" to the "usr/share/zoneinfo" directory, and then run "timeconfig" to select your timezone.


THIS is why I read this forum. Almost every time I visit, I learn something new and valuable.

THANKS!!!!!

diskoe 02-04-2007 09:32 PM

I still think Pat should come out with a patch for Slack 10.2 and older! What gives, Pat? :)

swampdog2002 02-05-2007 07:36 PM

Just out of curiosity, is it possible to have Slackware update the time automatically, aside from NTP and such? Sort of like how Windows would update the time automatically upon boot-up.


All times are GMT -5. The time now is 12:50 PM.