talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 324e61f543ec459d091bee943af1493d185a4df7
parent 5eb5c4effbb503e7355a7e4030139d13f7a1cd79
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:
Msrc/common/utils.c | 4++++
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;