commit 5fdaf05218fd69fad9b56e888c46eeacd0e89cec
parent 80f21116290b7be14cb27a162921d0ea6915b2ce
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Sat, 29 Dec 2018 14:09:42 +0100
Emulate strftime's %r on Windows which does not have that
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/common/utils.c b/src/common/utils.c
@@ -4234,7 +4234,11 @@ size_t fast_strftime(gchar *buf, gint buflen, const gchar *format, struct tm *lt
}
break;
case 'r':
+#ifdef G_OS_WIN32
+ strftime(subbuf, 64, "%I:%M:%S %p", lt);
+#else
strftime(subbuf, 64, "%r", lt);
+#endif
len = strlen(subbuf); CHECK_SIZE();
strncpy2(curpos, subbuf, buflen - total_done);
break;