Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Adjusting the timezones

The timezones are set in:

Code Block
src/main/webapp/WEB-INF/context/calendarContext.xml

And default to:

Code Block
langxml
<util:list id="timeZones">

...


  <value>America/

...

New_York</value>

...


  <value>America/Chicago</value>

...


  <value>America/Denver</value>

...


  <value>America/Phoenix</value>

...


  <value>America/Los_Angeles</value>

...


  <value>America/Anchorage</value>

...


  <value>America/Hawaii</value>

...


</util:list>
Code Block

You

...

can

...

add/edit/remove

...

timezones

...

in

...

this

...

list

...

to

...

customise

...

your

...

local

...

needs:

...

Code Block
langxml
<util:list id="timeZones">

...


  <value>Australia/ACT</value>

...


  <value>Australia/Brisbane</value>

...


  <value>Australia/Canberra</value>

...


  <value>Australia/Currie</value>

...


  <value>Australia/Hobart</value>

...


  <value>Australia/Lindeman</value>

...


  <value>Australia/Melbourne</value>

...


  <value>Australia/NSW</value>

...


  <value>Australia/Queensland</value>

...


  <value>Australia/Sydney</value>

...


  <value>Australia/Tasmania</value>

...


  <value>Australia/Victoria</value>

...


</util:list>

...

code

You will also have to add the timezone entries to the file src/main/resources/i18n/messages.properties for display in the JSP pages.

The default timezone is stored as a portlet preference named 'timezone'. You can override this via channel configuration or via editing the portlet.xml for the portlet. By default it is 'America/Chicago'. Consult a list of timezone values, such as http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/timezone.html or http://en.wikipedia.org/wiki/Zone.tab