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.
This Post was from: https://www.centos.org/newbb/viewtopic.php?forum=56&topic_id=36607&post_id=158674