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.

Unfortunately, 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.

To overcome this issue, a time zone of "0" (local time zone) may be specified to ConvertTimestamp() as either the source or destination time zone.