Sun Java System Calendar Server 6 2005Q4 Administration Guide

Adding a New Time Zone

This section describes how to add a new time zone to Calendar Server, so that it is available in the Communications Express user interface. For example, you might want to add a new time zone for America/Miami.

Tip –

The simplest way to add a new time zone is to copy and edit time-zone entries that are similar to the time zone you want to add in each of the files described in the following steps. For example, if you want to add a time zone for America/Miami, copy and edit the time-zone entries in each file for America/New_York.

ProcedureTo Add a New Time Zone

  1. Add a time-zone block for the new time zone in the following file:


    Again, the simplest way to add a new time-zone block is to copy an existing block that is similar, including any daylight savings time (DST) offsets, to the time zone you want to add. Then, edit the new time-zone block, making any changes for the new time zone. If your new time zone has Daylight Savings Time (DST), try to find a similar

  2. Modify the getDisplayNameofTZID template in the following file:

    cal_svr_base/SUNWics5/cal/html/language/i18n.xsl file

    where language specifies the directory for the language your site is using. For example: en for English, or fr for French.

    Add the new entry in the i18n.xsl file as:

    <xsl:when test="$tzid=’TimeZoneArea/


    TimeZoneArea is one of the geographic divisions: Africa, America, Asia, Atlantic, Australia, Europe, or Pacific.

    TimeZoneName is the name of your new time zone.

    For example:

    <xsl:when test="$tzid='America/Miami'"\>America/Miami</xsl:when\>
  3. Modify the following XML files:


    In each of these files, add the following line:

    <timezone type="TimeZoneType" 
       tzid="TimeZoneArea/TimeZoneName" offset="offset">


    TimeZoneType is "americas","europeAfrica", or "asiaPacific".

    TimeZoneArea and TimeZoneName are defined in Adding a New Time Zone.

    offset is the number of hours that your new time zone is ahead (+) or behind (-) GMT. For example, if your new time zone is four hours behind GMT, the offset would be "-04:00".

    For example:

    <timezone type="americas" tzid="America/Miami" 
       offset="-05:00" daylightOffset="-04:00">
  4. If you want the new time zone to be the default time zone for user preferences, modify the timezone entry in the following file:

  5. Stop (if necessary) and then restart Calendar Server for your new time zone to take effect.