mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 19:29:45 +00:00
Have %I yield values [1..12] instead of [0..11].
This commit is contained in:
parent
925cd95131
commit
e0262750ce
@ -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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user