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