The timezone property makes it possible to define the time zone in which the Wrapper will be executed.
Starting from version 3.5.29, it is advised to use IANA time zone identifiers. These identifiers are composed of the name of a continent or ocean and a name of a representative location within this area (typically the name of the largest city). For example, 'America/Los_Angeles' represents the timezone of Pacific Time. A full list of the identifiers can be found here.
For backward compatibility, a list of time zone abbreviations (e.g. MST, GMT, JST, etc.) is also supported.
However, Java deprecated these because the same abbreviation is sometimes used to represent several time zones.
It is not recommended to use them in the Wrapper configuration because the same code may lead to different interpretations depending on the operating system.
With IANA time zones, the same configuration will always produce the same time regardless of the platform.
Examples on defining the Timezone:
wrapper.timezone=America/Los_Angeles //Set the Timezone to Pacific Time
using a IANA identifier
wrapper.timezone=CET //Set the Timezone to Central European Time
wrapper.timezone=UTC+0100 //Set the Timezone to UTC+01
wrapper.timezone=UTC-0530 //Set the Timezone to UTC-0530
(-5 hours and 30 minutes offset to UTC)
Changing the timezone will affect the timestamps in all log output (in Standard and Professional Editions),
as well as the wrapper.timer.<n>.interval property
and the Mail Settings (in Professional Edition).
This property is required when using an IANA identifier. It allows you to specify the path to a directory containing the IANA Time Zone Database source files.
The IANA Time Zone database is regularly updated to take into account changes in the local times all over the world. The database provides several files (one per region in the world) which are grouped together in a single tar.gz package, and available for download on the website of the Internet Assigned Number Authority (IANA).
These files are called:
You should select the file named with the region containing the selected timezone. For example, the file 'northamerica' would be used when using the time zone 'America/Los_Angeles'. Next, extract it and put it in the location specified by the wrapper.timezone.file property. You may also put other files in the same folder if you plan to change wrapper.timezone to a timezone located in another region.
Since JAVA also uses the IANA Time Zone Database, the time used by your Java application will be consistent with the time of the Wrapper as long as they use the same timezone identifier. However, you may have to confirm that the version of the timezone database is the same as the one provided in your JRE release. A list of the versions per JRE release is availabe on Oracle's website.
Sometimes you want to turn off Summer (Daylight Saving) Time for some reasons
like having the Wrapper run on different servers in different timezones
and keeping the log files with the same timestamps, without changing the system's timezone.
With this property, you can specify whether the Wrapper will change the timezone information
to Summer(Daylight)/Winter Time automatically,
if the wrapper.timezone property has been set.
The default value is "TRUE".
Example: (Enable the time change to Summer/Winter Time)
If a timezone doesn't use Summer Time, this property will be ignored.
This also means that the Wrapper won't respect the property if the timezone was defined with "UTC+/-xxxx".
Also when a Summer (Daylight) Time has been defined for wrapper.timezone,
this property also has no effect.
List of the supported timezone identifiers
For a full list of the IANA timezone identifiers please refer to this page.