From e0262750ced680c4aee163878690a53aceb33fb4 Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Mon, 9 Dec 2013 19:53:27 +0100
Subject: [PATCH] Have %I yield values [1..12] instead of [0..11].
---
libsrc/common/strftime.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libsrc/common/strftime.c b/libsrc/common/strftime.c
index 49d2677cf..25cfd0606 100644
--- a/libsrc/common/strftime.c
+++ b/libsrc/common/strftime.c
@@ -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':
--
2.39.5