LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 01-05-2007, 03:03 PM   #1
diskoe
Member
 
Registered: Nov 2006
Posts: 36

Rep: Reputation: 15
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.
 
Old 01-05-2007, 03:46 PM   #2
bitva
Member
 
Registered: Dec 2002
Location: Los Angeles
Distribution: Debian
Posts: 72

Rep: Reputation: 15
Dunno. If you're really worried you can setup ntp and have it look at time servers in your area for the update(s)
 
Old 01-05-2007, 06:41 PM   #3
diskoe
Member
 
Registered: Nov 2006
Posts: 36

Original Poster
Rep: Reputation: 15
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.
 
Old 01-05-2007, 07:06 PM   #4
regis_n_bits
Member
 
Registered: Mar 2006
Distribution: Slackware64 14.1 (kernel 3.14.4)
Posts: 83

Rep: Reputation: Disabled
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
 
Old 01-05-2007, 08:14 PM   #5
bsdunix
Senior Member
 
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757

Rep: Reputation: 79
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.
 
Old 01-05-2007, 09:03 PM   #6
diskoe
Member
 
Registered: Nov 2006
Posts: 36

Original Poster
Rep: Reputation: 15
WOW, Thanks for that command! Exactly what I needed. The time zone file starts at the year 1901! Very cool.
 
Old 01-11-2007, 08:43 AM   #7
markys123451
LQ Newbie
 
Registered: Jan 2007
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
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.


 
Old 01-11-2007, 04:12 PM   #8
kkiedrowski
Member
 
Registered: Mar 2004
Posts: 47

Rep: Reputation: 15
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?
 
Old 01-11-2007, 06:54 PM   #9
regis_n_bits
Member
 
Registered: Mar 2006
Distribution: Slackware64 14.1 (kernel 3.14.4)
Posts: 83

Rep: Reputation: Disabled
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.
 
Old 01-26-2007, 10:33 PM   #10
daystrom
LQ Newbie
 
Registered: Jan 2007
Location: Ohio
Distribution: Slackware 10.0
Posts: 1

Rep: Reputation: 0
Thumbs up Thanks!

regis_n_bits:

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

Todd
 
Old 02-02-2007, 06:46 PM   #11
petcherd
Member
 
Registered: Dec 2006
Location: Portland, OR - USA
Distribution: Formerly Slackware; now RH, SuSE, Debian/Ubuntu, & Asianux
Posts: 55

Rep: Reputation: 15
It worked on my menagerie of Slack boxen including one as old as SlackWare 7.1

I only wish Windows was this easy.
 
Old 02-02-2007, 07:22 PM   #12
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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
 
Old 02-03-2007, 08:30 AM   #13
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,791
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
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!!!!!
 
Old 02-04-2007, 10:32 PM   #14
diskoe
Member
 
Registered: Nov 2006
Posts: 36

Original Poster
Rep: Reputation: 15
I still think Pat should come out with a patch for Slack 10.2 and older! What gives, Pat?
 
Old 02-05-2007, 08:36 PM   #15
swampdog2002
Member
 
Registered: Jul 2005
Distribution: Slackware 12.2, 13.0, openSUSE 11.2
Posts: 397

Rep: Reputation: 33
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot set time/date to other time zone than UTC (Kubuntu) jamangold Ubuntu 1 12-23-2005 06:42 PM
Time Zone cherukuri_sr Linux - Newbie 2 02-02-2005 12:20 PM
Display the date and time from another time zone lothario Linux - Software 4 07-31-2004 04:27 PM
Setting System Time: kernel in wrong time zone warrenweiss Linux - General 7 05-15-2004 04:25 PM
time zone exigent Linux - General 4 09-17-2002 04:41 PM


All times are GMT -5. The time now is 01:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration