How to compile Olson time zone database for a non-UTC time zone?
Posted by aboh on 2012/3/27 1:02:10
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.
Re: How to compile Olson time zone database for a non-UTC time zone?
Posted by pschaff on 2012/3/27 1:17:46
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.
This Post was from: https://www.centos.org/newbb/viewtopic.php?forum=56&topic_id=36607