Accept 12 for %l, because it's logical to expect "%l:%M" to work for
"12:00" and because strftime(3) does the same.
This commit is contained in:
parent
802528d8ff
commit
da906acc18
@ -258,7 +258,7 @@ label:
|
||||
if (c == 'H' || c == 'k') {
|
||||
if (i > 23)
|
||||
return 0;
|
||||
} else if (i > 11)
|
||||
} else if (i > 12)
|
||||
return 0;
|
||||
|
||||
tm->tm_hour = i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user