bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Timezones


From: Josef Moellers
Subject: Re: [Bug-wget] Timezones
Date: Wed, 8 Mar 2017 08:38:34 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

On 07.03.2017 21:51, Mike Frysinger wrote:
> On 07 Mar 2017 16:14, Josef Moellers wrote:
>> When a colleague checked timestamps handling in vsftpd, he found that
>> wget is expecting that timestamps received from ftp server have the same
>> timezone as the client.
>>
>> in src/ftp-ls.c:ftp_parse_unix_ls()
>> It reads time of modification from directory listing (.listing) which
>> should be in UTC according to
>> https://tools.ietf.org/html/rfc3659#section-3.1 and creates timestamp
>> using mktime(timestruct) which honors local timezone configuration. This
>> breaks timestamps.
> 
> i don't see any of timezone (utc or otherwise) in that document.
> iiuc, the time stamps are not standardized across OS's or server
> implementations, so wget can't take a hard line either: it isn't
> possible to always return the right answer.
> -mike
> 

Weeeeell ... The referenced section (which I should have read prior to
forwarding this report) references a "time-val" and in section 2.3 of
said document it explicitly states that

"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: yes, you're right, the referenced section does not specify a time
zone, but the RFC in general does.

Josef



reply via email to

[Prev in Thread] Current Thread [Next in Thread]