sogo/SOPE/NGCards/TimeZones/UPDATING
Francis Lachapelle 9ac8e9f0e1 Update the timezones definitions files
Update to the latest edition of the Olson database (2012j), generated
without the "--pure" parameter to get rid of RDATES.
2013-01-14 17:39:23 -05:00

23 lines
782 B
Plaintext

To updated the timezone files:
1- get the vzic or tzurl tool from http://code.google.com/p/tzurl/source/checkout and compile it
(update the Makefile to use PRODUCT_ID = -//Inverse inc.//NONSGML Olson 2012j//EN)
2- get the zone files, for example:
mkdir /tmp/zones
cd /tmp/zones
wget ftp://munnari.oz.au/pub/oldtz/tzdata2012j.tar.gz
tar -zxvf tzdata2012j.tar.gz
3- run the conversion tool
vzic --olson-dir /tmp/zones/ --output-dir SOGo/SOPE/NGCards/TimeZones/
cd SOGo/SOPE/NGCards/TimeZones/
rm -f zones.h zones.tab
4- if necessary, adjust the PRODID:
find . -name "*.ics" | xargs -ti sed -i s/'My Organization\/\/NONSGML My Product'/'Inverse inc.\/\/NONSGML SOGo'/ {}
find . -name "*.ics" | xargs -ti sed -i s/'\/myorganization.org\/20120508_1\/'// {}