mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
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
6d6fd92936
commit
882f32c169
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54301
@ -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…
Reference in New Issue
Block a user