From 4d6913170ec76ebd227d8261d41c78e5f897c4b2 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 30 May 2003 17:32:52 +0000 Subject: Fixes #43775 2003-05-29 JP Rosevear Fixes #43775 * e-time-utils.c (locale_supports_12_hour_format): use e_utf8_strftime (e_time_format_date_and_time): ditto (e_time_format_time): ditto svn path=/trunk/; revision=21354 --- e-util/e-time-utils.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'e-util/e-time-utils.c') diff --git a/e-util/e-time-utils.c b/e-util/e-time-utils.c index fc0f6a2174..43dc249efd 100644 --- a/e-util/e-time-utils.c +++ b/e-util/e-time-utils.c @@ -26,6 +26,7 @@ #include #include #include +#include #include "e-time-utils.h" @@ -107,7 +108,7 @@ locale_supports_12_hour_format (void) struct tm tmp_tm = { 0 }; char s[16]; - strftime (s, sizeof (s), "%p", &tmp_tm); + e_utf8_strftime (s, sizeof (s), "%p", &tmp_tm); return s[0] != '\0'; } @@ -390,7 +391,7 @@ e_time_format_date_and_time (struct tm *date_tm, /* strftime returns 0 if the string doesn't fit, and leaves the buffer undefined, so we set it to the empty string in that case. */ - if (strftime (buffer, buffer_size, format, date_tm) == 0) + if (e_utf8_strftime (buffer, buffer_size, format, date_tm) == 0) buffer[0] = '\0'; } @@ -426,7 +427,7 @@ e_time_format_time (struct tm *date_tm, /* strftime returns 0 if the string doesn't fit, and leaves the buffer undefined, so we set it to the empty string in that case. */ - if (strftime (buffer, buffer_size, format, date_tm) == 0) + if (e_utf8_strftime (buffer, buffer_size, format, date_tm) == 0) buffer[0] = '\0'; } -- cgit