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 wodFtpDLX.
valueA TimezonesEnum enumeration, as described in settings.

Remarks

Settings

The settings for value are:

Constant Value Description
ZoneLocal0 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, and FTP protocols work various ways) that defines whether wodFtpDLX 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 GetAttributes and SetAttributes methods. It does not affect the ListDir method directly, 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). However, if you access DirItems property after calling ListDir and access ModificationDate property for each item, it will be presented in UTC/Local time, based on the value of this property.

Platforms

Windows