Have %I yield values [1..12] instead of [0..11].
This commit is contained in:
@@ -114,7 +114,7 @@ size_t __fastcall__ strftime (char* buf, size_t bufsize, const char* format,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'I':
|
case 'I':
|
||||||
sprintf (arg, "%02d", tm->tm_hour % 12);
|
sprintf (arg, "%02d", (tm->tm_hour + 11) % 12 + 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'M':
|
case 'M':
|
||||||
|
|||||||
Reference in New Issue
Block a user