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:
Sheldon Hearn 1999-12-08 11:11:40 +00:00
parent 6d6fd92936
commit 882f32c169
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54301

View File

@ -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;