Closed Bug 961346 Opened 12 years ago Closed 11 years ago

Incorrect parsing of of midnight hour for FTP directory list in DOS format

Categories

(Core Graveyard :: Networking: FTP, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla33

People

(Reporter: kevin, Assigned: kevin)

Details

Attachments

(1 file)

File modification times between 12:00 AM and 12:59 AM in FTP directory listings in DOS format are incorrectly parsed as being between 12:00 PM and 12:59 PM due to a missing case in the AM/PM to 0-23 conversion for the midnight hour. For example, the following directory listing is parsed as 12:25 PM rather than AM: 01-11-14 12:25AM 18864566 testfile.zip I can confirm that this bug is present in version 24 and trunk (and presumably has been for quite some time before that). The fix is pretty trivial. I've included a patch. Cheers, Kevin
Attachment #8362052 - Flags: review?(mcmanus)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment on attachment 8362052 [details] [diff] [review] Fix FTP date parsing of midnight for DOS format Review of attachment 8362052 [details] [diff] [review]: ----------------------------------------------------------------- lgtm - thanks for the patch
Attachment #8362052 - Flags: review?(mcmanus) → review+
My pleasure, thanks for reviewing it!
Assignee: nobody → kevin
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: