-
-
Notifications
You must be signed in to change notification settings - Fork 659
Timezone Conversion
Robin Rodricks edited this page Oct 12, 2020
·
19 revisions
-
TimeConversion - Server timestamps are converted into the given timezone.
-
FtpDate.ServerTime
will return the original timestamp. -
FtpDate.LocalTime
will convert the timestamp into your local machine's timezone. -
FtpDate.UTC
will convert the timestamp into UTC format (GMT+0). - You need to set
TimeZone
andLocalTimeZone
(.NET core only) for these to work. Default:FtpDate.ServerTime
.
-
-
TimeZone - The timezone of the FTP server. If the server is in Tokyo with UTC+9 then set this to 9. If the server returns timestamps in UTC then keep this 0. Default: 0.
-
LocalTimeZone (.NET core only) - The timezone of your machine. If your machine is in Tokyo with UTC+9 then set this to 9. If your machine is synchronized with UTC then keep this 0. Default: 0.
Set the server's timezone into TimeZone
and then set TimeConversion = FtpDate.UTC
Set the server's timezone into TimeZone
and then set TimeConversion = FtpDate.LocalTime
For .NET Core/.NET Standard users: You need to set LocalTimeZone
with the timezone of your machine.
- Auto Connection
- Auto Reconnection
- FTP(S) Connection
- FTP(S) Connection using GnuTLS
- FTPS Proxies
- Custom Servers
- Custom Commands
- v40 Migration Guide