Re: [BUG] server time zone ignored in some situations

"Alexander V. Lukyanov" <[email protected]> Wed, 9 Mar 2011 12:55:29 +0300
Newsgroups gmane.network.lftp.devel
Message-ID <[email protected]>
On Sat, Mar 05, 2011 at 05:22:32PM -0800, Chris Moore wrote:
> This ends up using Ftp::ConvertFtpDate() in ftpclass.cc, which ignores
> the timezone, instead doing: return mktime_from_utc(&tm);

This is correct. MDTM command must return GMT time. From the
draft-ietf-ftpext-mlst-16.txt:

   Time values are always represented in UTC (GMT), and in the Gregorian
   calendar regardless of what calendar may have been in use at the date
   and time indicated at the location of the server-PI.

So the bug is on the server side.

-- 
   Alexander.