diff options
-rw-r--r-- | e-util/ChangeLog | 8 | ||||
-rw-r--r-- | e-util/e-time-utils.c | 7 |
2 files changed, 12 insertions, 3 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog index f376240c42..3cbac0eade 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,11 @@ +2003-05-29 JP Rosevear <jpr@ximian.com> + + 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 + 2003-05-16 Dan Winship <danw@ximian.com> * e-proxy.c (e_proxy_init): Removing trailing / in key name passed 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 <ctype.h> #include <glib.h> #include <libgnome/gnome-i18n.h> +#include <gal/util/e-util.h> #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'; } |