diff options
author | JP Rosevear <jpr@ximian.com> | 2003-05-31 01:32:52 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-05-31 01:32:52 +0800 |
commit | 4d6913170ec76ebd227d8261d41c78e5f897c4b2 (patch) | |
tree | af255d072c9864dee8f8c26cac5ffee4cce22113 | |
parent | 79f2149fd173467df5be5b55ecacb86ec4588691 (diff) | |
download | gsoc2013-evolution-4d6913170ec76ebd227d8261d41c78e5f897c4b2.tar.gz gsoc2013-evolution-4d6913170ec76ebd227d8261d41c78e5f897c4b2.tar.zst gsoc2013-evolution-4d6913170ec76ebd227d8261d41c78e5f897c4b2.zip |
Fixes #43775
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
svn path=/trunk/; revision=21354
-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'; } |