mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] ftp_parse_winnt_ls(): Made the fix for AM/PM more effective.
This commit is contained in:
parent
5fa53b5a1d
commit
568b584271
@ -459,8 +459,8 @@ ftp_parse_winnt_ls (const char *file)
|
||||
/* Adjust hour from AM/PM. Just for the record, the sequence goes
|
||||
11:00AM, 12:00PM, 01:00PM ... 11:00PM, 12:00AM, 01:00AM . */
|
||||
tok+=2;
|
||||
if ((*tok == 'A') && (hour == 12)) hour = 0;
|
||||
else if ((*tok == 'P') && (hour < 12)) hour += 12;
|
||||
if (hour == 12) hour = 0;
|
||||
if (*tok == 'P') hour += 12;
|
||||
|
||||
DEBUGP(("YYYY/MM/DD HH:MM - %d/%02d/%02d %02d:%02d\n",
|
||||
year+1900, month, day, hour, min));
|
||||
|
Loading…
Reference in New Issue
Block a user