CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 4 - General Support
  DST 2007 support in CentOS?

 

 Bottom   Previous Topic   Next Topic
123>
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  dmedia
      dmedia
DST 2007 support in CentOS?
#1
Peeking in the Member Window
Joined: 2005/6/13
From
Posts: 20
Hi,

I was trying to check on DST 2007 support in CentOS 4.4 but didn't find anything in a search.

Should I assume that it's been included in a patch and if I'm up to date via yum, I'm good?

Thanks.
Posted on: 2007/1/26 21:13
Create PDF from Post Print
Top
  •  Lenard
      Lenard
Re: DST 2007 support in CentOS?
#2
Professional Board Member
Joined: 2005/11/29
From Indiana
Posts: 2283
You should be ready as long as you have the latest tzdata rpm package in place;

tzdata-2006m-3.el4.noarch.rpm 26-Nov-2006 13:09 444K
_________________
CentOS: The Sysadmins choice
Congratulations NedSlider
Posted on: 2007/1/26 23:00
Create PDF from Post Print
Top
  •  devmage
      devmage
Re: DST 2007 support in CentOS?
#3
Peeking in the Member Window
Joined: 2007/2/1
From
Posts: 12
After I applied the patch to 'tzdata-2006m-3.el4' I ran the following:

zdump -v /etc/localtime | grep 2007
/etc/localtime Sun Apr 1 09:59:59 2007 UTC = Sun Apr 1 01:59:59 2007 PST isdst=0 gmtoff=-28800
/etc/localtime Sun Apr 1 10:00:00 2007 UTC = Sun Apr 1 03:00:00 2007 PDT isdst=1 gmtoff=-25200
/etc/localtime Sun Oct 28 08:59:59 2007 UTC = Sun Oct 28 01:59:59 2007 PDT isdst=1 gmtoff=-25200
/etc/localtime Sun Oct 28 09:00:00 2007 UTC = Sun Oct 28 01:00:00 2007 PST isdst=0 gmtoff=-28800

Which I had read to use to confirm you were supporting the 2007 DST and it appears that it is not.

There is a tzdata 2007a but there doesn't appear to be a package for that data yet.
Posted on: 2007/2/1 18:30
Create PDF from Post Print
Top
  •  Lenard
      Lenard
Re: DST 2007 support in CentOS?
#4
Professional Board Member
Joined: 2005/11/29
From Indiana
Posts: 2283
Try this one, sorry about having to make a zip file. No other way to attach it to this reply.

$ zdump -v /etc/localtime | grep 2007
/etc/localtime Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 EST isdst=0 gmtoff=-18000
/etc/localtime Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 EDT isdst=1 gmtoff=-14400
/etc/localtime Sun Nov 4 05:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 EDT isdst=1 gmtoff=-14400
/etc/localtime Sun Nov 4 06:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 EST isdst=0 gmtoff=-18000



Attach file
Attached file:SizeHits
zip tzdata-2007a-1.el4.src.rpm.zip 351.32 KB 769
_________________
CentOS: The Sysadmins choice
Congratulations NedSlider
Posted on: 2007/2/1 22:05
Create PDF from Post Print
Top
  •  devmage
      devmage
Re: DST 2007 support in CentOS?
#5
Peeking in the Member Window
Joined: 2007/2/1
From
Posts: 12
Not sure what I did wrong but I installed the package and I still get April.

rpm -qa|egrep tzdata
tzdata-2007a-1

zdump -v /etc/localtime | grep 2007
/etc/localtime Sun Apr 1 09:59:59 2007 UTC = Sun Apr 1 01:59:59 2007 PST isdst=0 gmtoff=-28800
/etc/localtime Sun Apr 1 10:00:00 2007 UTC = Sun Apr 1 03:00:00 2007 PDT isdst=1 gmtoff=-25200
/etc/localtime Sun Oct 28 08:59:59 2007 UTC = Sun Oct 28 01:59:59 2007 PDT isdst=1 gmtoff=-25200
/etc/localtime Sun Oct 28 09:00:00 2007 UTC = Sun Oct 28 01:00:00 2007 PST isdst=0 gmtoff=-28800
Posted on: 2007/2/5 15:46
Create PDF from Post Print
Top
  •  Lenard
      Lenard
Re: DST 2007 support in CentOS?
#6
Professional Board Member
Joined: 2005/11/29
From Indiana
Posts: 2283
This is a src.rpm file after installing you have to build then install the binary, typically as root from the console or xterm session;

cd /udr/src/redhat/SPCES
rpmbuild -bb tzdata.spec

Watch the output it will tell you where the binary rpm package is that need to be installed;

rpm -Uvh tzdata-2007a-1.noarch.rpm

Usually if you build as root (which not a good idea) it will be found in the /etc/redhat/RPMS/noarch directory location after building.
_________________
CentOS: The Sysadmins choice
Congratulations NedSlider
Posted on: 2007/2/5 17:22
Create PDF from Post Print
Top
  •  devmage
      devmage
Re: DST 2007 support in CentOS?
#7
Peeking in the Member Window
Joined: 2007/2/1
From
Posts: 12
I had built it with

rpmbuild --rebuild tzdata-2007a-1.el4.src.rpm

and updated:

rpm -U tzdata-2007a-1.noarch.rpm

It shows tzdata-2007a-1 is installed.

and I still get:

zdump -v /etc/localtime | grep 2007
/etc/localtime Sun Apr 1 09:59:59 2007 UTC = Sun Apr 1 01:59:59 2007 PST isdst=0 gmtoff=-28800
/etc/localtime Sun Apr 1 10:00:00 2007 UTC = Sun Apr 1 03:00:00 2007 PDT isdst=1 gmtoff=-25200
/etc/localtime Sun Oct 28 08:59:59 2007 UTC = Sun Oct 28 01:59:59 2007 PDT isdst=1 gmtoff=-25200
/etc/localtime Sun Oct 28 09:00:00 2007 UTC = Sun Oct 28 01:00:00 2007 PST isdst=0 gmtoff=-28800

So I'm not sure what I'm doing wrong.
Posted on: 2007/2/5 17:48
Create PDF from Post Print
Top
  •  Lenard
      Lenard
Re: DST 2007 support in CentOS?
#8
Professional Board Member
Joined: 2005/11/29
From Indiana
Posts: 2283
Show the output from the typed command, please; /bin/rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}\n" tzdata

FYI: you do not really need to install tzdata-2007a-1.noarch.rpm package, just use rpm2cpio and cpio and copy the extracted /usr/share/zoneinfo files to the /usr/share/zoneinfo directory.

rpm2cpio < tzdata-2007a-1.noarch.rpm > tzdata.cpio
cpio -i -d < tzdata.cpio

If all else fails then try the tzdata-2007a-1.noarch.rpm from Fedora Development.
_________________
CentOS: The Sysadmins choice
Congratulations NedSlider
Posted on: 2007/2/5 19:49
Create PDF from Post Print
Top
  •  wazoo
      wazoo
Re: DST 2007 support in CentOS?
#9
Newbie
Joined: 2007/2/1
From
Posts: 1
if its any consolation, i just performed yum update on my centos 4.4 systems and it is now showing the correct dates.
Posted on: 2007/2/16 15:01
Create PDF from Post Print
Top
  •  devmage
      devmage
Re: DST 2007 support in CentOS?
#10
Peeking in the Member Window
Joined: 2007/2/1
From
Posts: 12
My problems were related to not replacing localtime after the update was applied. It was a step I missed seeing I ran into in another doc. So if anyone else is having problems make sure you copy over /etc/localtime after the update if you are not using a symbolic link.

All is well now thanks for the feedback.
Posted on: 2007/2/16 15:32
Create PDF from Post Print
Top
  •  mr_manny
      mr_manny
Re: DST 2007 support in CentOS?
#11
Regular Board Member
Joined: 2005/9/18
From San Pancho, CA
Posts: 84
Quote:

Lenard wrote:
FYI: you do not really need to install tzdata-2007a-1.noarch.rpm package, just use rpm2cpio and cpio and copy the extracted /usr/share/zoneinfo files to the /usr/share/zoneinfo directory.

rpm2cpio < tzdata-2007a-1.noarch.rpm > tzdata.cpio
cpio -i -d < tzdata.cpio


Lenard,
I forgot all about rpm2cpio and cpio (don't use those too very often).

I have a OLD rh6.2 ppp/paging/sendmail box and no support for this years DST changes (don't ask).
Replacing it w/centOS is on the list, and your post gave me some breathing room...worked like a charm :D

thank you sir!
manny
Posted on: 2007/2/17 3:36
Create PDF from Post Print
Top
  •  Lenard
      Lenard
Re: DST 2007 support in CentOS?
#12
Professional Board Member
Joined: 2005/11/29
From Indiana
Posts: 2283
You are welcome, glad to help.

Yea, I use rp2cpio and cpio rarely myself, I keep examples in a rarely used commands.txt file for reference. Some other examples;

When making an ISO from an existing factory created CD, create and verify
the ISO against the CD using rawread as follows:

rawread /dev/cdrom > myiso.iso
rawread /dev/cdrom | md5sum
md5sum myiso.iso

Getting the CD/DVD volume information;
/lib/udev/vol_id --export /dev/hdc

Mount the cdrom media for access being used in the rescue mode;

# mknod /tmp/tmpcdrom b 22 0
# mount -t iso9660 /tmp/tmpcdrom /cdrom

Fun with .bash_history

Disable history;
rm .bash_history
touch .bash_history
sudo chattr +i .bash_history

Enable history;
sudo chattr -i .bash_history
_________________
CentOS: The Sysadmins choice
Congratulations NedSlider
Posted on: 2007/2/17 14:15
Create PDF from Post Print
Top
  •  smitjel
      smitjel
Re: DST 2007 support in CentOS?
#13
Newbie
Joined: 2006/5/2
From
Posts: 4
I've got CentOS 3.8 machines and CentOS 4.4 machines and I haven't done anything special to them except for keeping them (yum) updated and I get the correct zdump output for 2007. Is there any particular reason you guys are having to install this tzdata rpm?
Posted on: 2007/2/19 15:52
Create PDF from Post Print
Top
  •  km4hr
      km4hr
Re: DST 2007 support in CentOS?
#14
Regular Board Member
Joined: 2005/3/16
From
Posts: 61
If a system is configured to use NTP will NTP take care of DST issues?

How does NTP work anyway? Does it set the internal "seconds since 1971" clock and let the system
interpret the what the seconds mean? Or does it provide a date string, similar to setting the time manually at the
command line, using "date ...." for example?

How often does NTP update the system time?
Posted on: 2007/2/20 17:04
Create PDF from Post Print
Top
  •  WhatsHisName
      WhatsHisName
Re: DST 2007 support in CentOS?
#15
Professional Board Member
Joined: 2005/12/19
From /earth/usa/nj (UTC-5)
Posts: 1313
Wikipedia to the rescue!

Quote:
If a system is configured to use NTP will NTP take care of DST issues?

Have you heard of Coordinated Universal Time / Temps Universel Coordonné? (See UTC Time Zones)

Quote:
How does NTP work anyway?

Network Time Protocol (See NTP Timestamps)
_________________
Useful links: Newbie Info; Manuals; Wiki; EL Repo
Posted on: 2007/2/20 18:26
Create PDF from Post Print
Top
  •  jhadzima
      jhadzima
Re: DST 2007 support in CentOS?
#16
Newbie
Joined: 2007/2/28
From
Posts: 3
I am really struggling trying to figure out how to update my CentOS server to the new DST. I've followed this thread but am now lost.

I have the file tzdata-2007a-1.el4.src.rpm.zip downloaded, extracted, and copied to my server.

A couple of the post mention running rpmbuild. I don't have that file on my server. The /usr/src folder it is suppose to be under is empty on my server.

I can run these 2 commands:

rpm2cpio < tzdata-2007a-1.noarch.rpm > tzdata.cpio
cpio -i -d < tzdata.cpio

Which gives me 4 new files in the folder:
tzdata.cpio
tzdata.spec
tzdata2007a.tar.gz
tzdata-base-0.tar.bz2

So now what do I do with these files? The post says to copy the extracted /usr/share/zoneinfo files to the /usr/share/zoneinfo directory. Are they talking about the 3 newly extracted files listed above? If so those files don't already exist in that folder so I'm not sure what good that will do.

I am a total Linux newbie and don't know a thing about updating the OS or using rpms. Any help would be GREATLY appreciated!!
Posted on: 2007/2/28 19:07
Create PDF from Post Print
Top
  •  pjwelsh
      pjwelsh
Re: DST 2007 support in CentOS?
#17
Professional Board Member
Joined: 2007/1/7
From Central IL USA
Posts: 2206
you want to run "rpmbuild --rebuild tzdata-2007a-1.el4.src.rpm.zip" and install the tzdata*.noarch.rpm package that you get
Posted on: 2007/2/28 19:45
Create PDF from Post Print
Top
  •  WhatsHisName
      WhatsHisName
Re: DST 2007 support in CentOS?
#18
Professional Board Member
Joined: 2005/12/19
From /earth/usa/nj (UTC-5)
Posts: 1313
jhadzima: As several people have pointed out: If you are up-to-date, then you shouldn’t have a problem.

$ cat /etc/redhat-release
CentOS release 4.4 (Final)

$ uname -r
2.6.9-42.0.10.ELsmp

$ rpm -q tzdata
tzdata-2006m-3.el4

$ /usr/sbin/zdump -v /etc/localtime | grep 2007
/etc/localtime  Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 EST isdst=0 gmtoff=-18000
/etc/localtime  Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 EDT isdst=1 gmtoff=-14400
/etc/localtime  Sun Nov  4 05:59:59 2007 UTC = Sun Nov  4 01:59:59 2007 EDT isdst=1 gmtoff=-14400
/etc/localtime  Sun Nov  4 06:00:00 2007 UTC = Sun Nov  4 01:00:00 2007 EST isdst=0 gmtoff=-18000
_________________
Useful links: Newbie Info; Manuals; Wiki; EL Repo
Posted on: 2007/2/28 20:44
Create PDF from Post Print
Top
  •  hphinizy
      hphinizy
Re: DST 2007 support in CentOS?
#19
Newbie
Joined: 2007/3/1
From
Posts: 4
For the life of me I cannot get this done... I yum update tzdata and the rpm gets installed thought the zdump does not reflect the march 11th date. Can some one throw me a bone here :).

My latest iteration is to build the rpm src--to no avail:

[root@bb ~]# cat /etc/redhat-release
CentOS release 4.4 (Final)

[root@bb ~]# rpm -qa | grep -i tzdata
tzdata-2007a-1

[root@bb ~]# zdump -v /etc/localtime | grep 2007
/etc/localtime Sun Apr 1 09:59:59 2007 UTC = Sun Apr 1 01:59:59 2007 PST isdst=0 gmtoff=-28800
/etc/localtime Sun Apr 1 10:00:00 2007 UTC = Sun Apr 1 03:00:00 2007 PDT isdst=1 gmtoff=-25200
/etc/localtime Sun Oct 28 08:59:59 2007 UTC = Sun Oct 28 01:59:59 2007 PDT isdst=1 gmtoff=-25200
/etc/localtime Sun Oct 28 09:00:00 2007 UTC = Sun Oct 28 01:00:00 2007 PST isdst=0 gmtoff=-28800

Thanks,

Harison
Posted on: 2007/3/1 19:50
Create PDF from Post Print
Top
  •  gerald_clark
      gerald_clark
Re: DST 2007 support in CentOS?
#20
Professional Board Member
Joined: 2005/8/5
From Northern Illinois, USA
Posts: 4473
Did you run timeconfig ?
Posted on: 2007/3/1 19:56
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic
123>

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com