Runtime tools : Core components : Timezone : How the timezone works
  
How the timezone works
Timezone provides an international format of date object in UNICOM® Digital Transformation Toolkit (UDTT™). When enableTimezone is true, timezone information would be taken into consideration when display or convert a date. For example:
2012-10-17 09:00:00 UTC/GMT
Should be display as 2012-10-17 11:00:00 for +2 offset timezone
This normalization can be done either in the client (the client widget does the conversion before submitting the data) or in the server (the client submits the date/time and the timezone so the server, WAS, can make the conversion).
This graphic is described in the surrounding text.
Client side
HTML Mode: An util js will be referred to calculate the client side timezone. After page loaded, this util will be automatically generate the timezone information and set this information to request data, including Form and Link.
Ajax Mode: The Util js will be used and controlled by Navigation Engine. The engine will add the timezone information into each request data automatically.
Server side
When UDTT Channel received a client request, RequestHandler will parse the request date. If the "dse_timezone" parameter is defined in the request data, RequestHandler will parse and set this parameter to current session context as a system variable.
At the same time, RequestHandler will also set the "dse_timezone" variable into timezone holder static variable in BTTCore.
Different Timezone and Priority
If the "dse_timezone"(Client timezone, submitted by client) is found in session context, this timezone will be the first priority used when data conversion or mapping.
If "dse_timezone" is not found in context, the timezone "defaultTimezone" which is defined in BTT.xml by user, will be used.
If timezone is not submitted from client and default timezone is not defined, current system timezone will be used.
Go up to
Timezone