bugGNU Wget - Bugs: bug #28541, Faulty time information in FTP...


bug #28541: Faulty time information in FTP directory listing

Submitted by:  Micah Cowan <micahcowan>
Submitted on:  Sun 10 Jan 2010 02:46:34 AM UTC  
Category: Program LogicSeverity: 2 - Minor
Priority: 5 - NormalStatus: Needs Investigation
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open
Release: NoneOperating System: None
Reproducibility: NoneFixed Release: None
Planned Release: 1.15Regression: None
Work Required: 0 - HoursPatch Included: None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 04 Nov 2014 11:40:04 PM UTC, comment #2:

This seems to be fixed (if I understand the first bug report correctly).

This can be verified by checking the output of:

wget -q -O - ftp://ftp.gnu.org/gnu/ | grep -E "[0-9]{2}:[0-9]{2}"

With a current version of wget (1.16 in this case).

Timestamps with HH::MM are all present.

Fixed by:
commit e6b486fd930fea1a6edddf943c6385be8c74418e
Author: John Trengrove <jtrengrove@gmail.com>
Date: Sun Aug 1 22:55:53 2010 +0200

ftp: display hour:minute information if it is available.

For details see
git diff ca12585a0e221e31a59898fe33f1a0caf7918f26 e6b486fd930fea1a6edddf943c6385be8c74418e -- src/ftp-ls.c

But basically, what fixed the problem was:
@@ -907,7 +1139,7 @@ ftp_index (const char file, struct url u, struct fileinfo *f)

fprintf (fp, "%d %s %02d ", ptm->tm_year + 1900, months[ptm->tm_mon],
- if (ptm->tm_hour)
+ if (f->ptype == TT_HOUR_MIN)
fprintf (fp, "%02d:%02d ", ptm->tm_hour, ptm->tm_min);
fprintf (fp, " ");

This bug report should be closed.

Best regards,

Pär Karlsson <feinorgh>
Sun 01 May 2011 06:00:16 PM UTC, comment #1:

Already fixed in r2414

David Valentim Dias <dvd>
Sun 10 Jan 2010 02:46:34 AM UTC, original submission:


Micah Cowan <micahcowan>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by feinorgh (Posted a comment)
  • -unavailable- added by dvd (Posted a comment)
  • -unavailable- added by micahcowan (Submitted the item)

    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1