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

2011-03-09 Thread Alexander V. Lukyanov
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.


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

2011-03-09 Thread Chris Moore
On Wed, Mar 9, 2011 at 1:55 AM, Alexander V. Lukyanov l...@netis.ru wrote:

  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.


Oh dear.  I have no way of fixing the server.

A configurable option in the client to specify how far off MDTM output is
woud be useful.

Chris.