VTScada and Time Zones

VTScada provides three time zone functions:

  • TimeZoneList(): The TimeZoneList() function provides a list of time zones.
  • ConvertTimestamp(): The ConvertTimestamp() function converts a timestamp between different time zones.
  • TimeZone(): The TimeZone() function returns information on the current time zone, such as the time zone name.

Note that TimeZoneList() and ConvertTimestamp() depend on information in the Windows system registry that is not localized on non-English versions of Windows operating systems, however, TimeZone() does. This causes problems when you need to convert a timestamp to or from the local time zone, as the result of TimeZone(2) is not suitable as a parameter to ConvertTimestamp() on non-English systems.

We recommend using TimeZone(3) instead of 0. Using TimeZone(3), the time will be converted to the current timezone of the thin client session if the GUI code is running for a thin client. Using 0 makes it always use the server's timezone.