Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Timezones are an important and at times awkward feature of calendaring.  There is no official registry of timezones. The Olson database comes closest.  In the Olson database, timezones are named according to their continent and nearest large city, for example America/New_York.

System timezones

Bedework provides a set of timezones, the system timezones, which are available to all users of the system. The distributed system comes with timezones derived from the Olson database but any set of timezones could be used. The administrative application provides a means for replacing the system timezones by uploading an xml formatted data file.

Building timezone information

  1. Convert the Olson database into a set of ics files. The data is available from ftp://elsie.nci.nih.gov/pubvzic, a program available at http://www.dachaplin.dsl.pipex.com/vzic/, can be used to convert the zone information,  Download and unpack the latest source and set the appropriate variables:
    1. OLSON_DIR=wherever the data was unpacked.
    2. PRODUCT_ID=-//BEDEWORK//NONSGML Bedework Calendar system//US
    3. TZID_PREFIX=      

The TZID_PREDIX can be set to a value which indicates which system the timezone originated from, e.g. "/Bedework.org/". Having built vzic (make) and run it (./vzic) a directory named zoneinfo should be built. This is copied into the bwtolls/resources directory.

A copy of this generated data is available at [http://Bedework.org/downloads/data/:http://Bedework.org/downloads/data/

  1. Convert the data into an xml form for upload. Change directory into the bwtools project and run the following (all one line) which will create a file of xml timezone information:
java -cp bin/bw-tztools-3.2.jar:lib/log4j-1.2.8.jar org.Bedework.tools.timezones.Timezones -dir projects/bwtools/resources/zoneinfo -f tz.xml

A copy of this is generated file is also available at the link above. Finally we need to replace the system timezones in the production system.

  1. Log in to the administrative client as a super user, go to Upload and replace system timezones, browse to the generated timezones file, then upload.
  • No labels