CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 6 - Software Support
  How to compile Olson time zone database for a non-UTC time zone?

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  aboh
      aboh
How to compile Olson time zone database for a non-UTC time zone?
#1
Newbie
Joined: 2012/3/25
From
Posts: 3
Hello,

We downloaded the latest version of the Olson Zone Info time zone database to our CentOS 6 system and built it. By default, it compiles its files so the transition rules' times are in UTC. Is there a way to have then use America/Chicago instead of UTC? I've tried regenerating the binary database files by doing the following:

rm -f /etc/localtime
ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime
zic -L tzcode2012b/leapseconds -y tzcode2012b/yearistype.sh -d tmp tzcode2012b/northamerica -l America/Chicago

But, it appears that the time zone transition rules in the files are still in UTC. I've also tried changing the time zone in the Makefile, and rebuilding the release, which generates new binary files. But, they still have UTC transition time rules, not rules in our local time in America/Chicago.

This may seem like a strange request, and it is! :) A project that we are creating needs to have local transition times... Anyway, I hope that someone can help me to figure this out... There isn't much published about this topic on the Net.

Thanks,

Mike
Posted on: 2012/3/27 1:02
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: How to compile Olson time zone database for a non-UTC time zone?
#2
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
It would as help if you would provide some links. The Olson Zone Info time zone database is apparently not an explicit part of CentOS.

This seems to be the same problem as your initial post to the fora in which you never responded. Please do not start multiple thread on the same issue. This one is now locked and any replies should go to the original thread. If I am misinterpreting please enlighten me and I will reopen it.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/3/27 1:17
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You cannot 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