mirror of
https://github.com/cc65/cc65.git
synced 2026-04-25 06:17:58 +00:00
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;
|
||||
|
||||
case 'I':
|
||||
sprintf (arg, "%02d", tm->tm_hour % 12);
|
||||
sprintf (arg, "%02d", (tm->tm_hour + 11) % 12 + 1);
|
||||
break;
|
||||
|
||||
case 'M':
|
||||
|
||||
Reference in New Issue
Block a user