Properly define and install a CygNetTimeZones.xml file to provide drop-down time zone options for your CygNet Software installation.
By default, a Universal Interface Service (UIS) is assumed to be in the same time zone as its associated field device. If the field device is not in the same time zone as the associated UIS, you must specify the time zone of the field device in the Display Name drop-down menu of the Time Zone page in the remote device editor.
The CygNetTimeZones.xml file is located in the CygNet\Services\ARS folder on your host server. This file enables the conversion of field device local time to Coordinated Universal Time (UTC) for point processing in the host system.
Example
|
<Timezones> <TZ DisplayName="(GMT+04:30) Kabul" Mins="-270" CygNetKey="1" Active="0"> <Standard Name="Afghanistan Standard Time" Mins="0" Year="0" Month="0" DayOfWeek="0" Day="0" Hour="0" Minute="0" Second="0" Milliseconds="0"/> <Daylight Name="Afghanistan Daylight Time" Mins="-60" Year="0" Month="0" DayOfWeek="0" Day="0" Hour="0" Minute="0" Second="0" Milliseconds="0"/> </TZ> <TZ> ETC… </TZ> </Timezones> |
A sample CygNet time zone file (CygNetTimeZones.xml) is available on the CygNet CD_Image in the Samples\Misc folder. Use the following procedure to configure a CygNetTimeZones.xml file to meet your specific needs.
To Configure a CygNetTimeZones.xml File
See Time Zone Page for more information.
The following table provides the names of all relevant CygNetTimeZones.xml elements and useful information about each.
| Element | Notes |
|---|---|
|
Timezones |
|
|
TZ |
|
|
Standard Name |
|
|
Daylight Name |
|
The following table provides the names of all relevant CygNetTimeZones.xml attributes and useful information about each.
| Attributes | Notes |
|---|---|
| TZ | |
|
DisplayName |
The name of the time zone as you want it to appear in the Display Name drop-down menu of the Time Zone page in your remote device editor. |
|
Mins |
Used in the TZ element, Mins is the number of minutes a certain time zone is offset from UTC. To get UTC, add the Mins value to that time zone's local time. For instance, if it is 8:00 a.m. local time in Anchorage, add 540 minutes to get UTC. If it is 8:00 AM local time in Riyadh, add -180 minutes to get UTC. |
|
CygNetKey |
A unique numerical identifier for each TZ entry in a CygNetTimeZones.xml file. It is stored in the database records and used to identify a selected time zone. |
|
Active |
Indicates whether this time zone is active or not in the DDS. 1 indicates active. 0 indicates inactive. |
| Standard Name and Daylight Name | |
|
Mins |
|
|
Year |
|
|
Month |
|
|
DayOfWeek |
|
|
Day |
|
|
Hour |
|
|
Minute |
|
|
Second |
|
|
Milliseconds |
|