bug-wget
[Top][All Lists]
Advanced

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

[Bug-wget] Timezones


From: Josef Moellers
Subject: [Bug-wget] Timezones
Date: Tue, 7 Mar 2017 16:14:27 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

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.

Josef



reply via email to

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