Skip to content

Timezone conversion issue - Version 33.x #656

@sierrodc

Description

@sierrodc

FTP OS: Windows

Computer OS: Windows 10

FluentFTP Version: 33.04

Hi,
According to the documentation, version 33.x introduced a new way to consider timezones. According to the code in FtpClient_Timezone.cs file, the code (at least for CORE) is:

if (m_timeConversion == FtpDate.LocalTime) {
    date = date + m_localTimeOffset;
}

where m_localTimeOffset is (not sure) the offset specified in the FtpClient.LocalTimeZone property.
But, m_localTimeOffset should be different in case of summer-winter time, so, it depends on the date that is going to be converted itself.

In my opinion, the code used for .net framework (that is, date = System.TimeZone.CurrentTimeZone.ToLocalTime(date);) should be also applied in CORE.

For the moment, I rolled back to version 32.x.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions