1
0
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:
Oliver Schmidt 2013-12-09 19:53:27 +01:00
parent 925cd95131
commit e0262750ce

View File

@ -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':