Back to product page

Timezone property


Determines if dates are shown in Local or UTC time zone.

Type

A TimezonesEnum enumeration.

Syntax

  • Basic
object.Timezone [= value]
The Timezone(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodSFTP.
valueA TimezonesEnum enumeration, as described in settings.

Remarks

The settings for value are:

Constant Value Description
ZoneLocal 0 Time/Date is represented in local time zone.
ZoneUTC 1 Time/Date is represented in UTC.


The Timezone property is a client-side add-on (by default, the SFTP protocol only works with UTC dates) that defines whether wodSFTP will represent dates in the Local time zone or in UTC/GMT. It is more convenient that dates are represented in local time but it is possible that the server (or local computer) will have its clock set incorrectly, thus our calculation of the local->UTC->local conversion will be invalid.

This setting affects the ListAttributes, GetAttributes and SetAttributes methods. It does not affect the ListDir method because ListDir does not interfere with the contents of the directory - it just provides it as it is received from the server (as string data).

Platforms

Windows