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)
Core Graveyard
Networking: FTP
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla33
People
(Reporter: kevin, Assigned: kevin)
Details
Attachments
(1 file)
1.17 KB,
patch
|
mcmanus
:
review+
|
Details | Diff | Splinter Review |
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
Updated•11 years ago
|
Attachment #8362052 -
Flags: review?(mcmanus)
Updated•11 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 1•11 years ago
|
||
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+
Assignee | ||
Comment 2•11 years ago
|
||
My pleasure, thanks for reviewing it!
Comment 3•11 years ago
|
||
Waiting for the try result: https://tbpl.mozilla.org/?tree=Try&rev=da767e28f028
Comment 4•11 years ago
|
||
Assignee: nobody → kevin
Status: NEW → ASSIGNED
Comment 5•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Updated•2 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•