From: Dirk-Jan C. Binnema Date: Fri, 26 Jan 2007 16:40:37 +0000 (+0000) Subject: * modest-text-utils.c: X-Git-Tag: git_migration_finished~4140 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=5049ded01942fbb884d321b2eabbdec161c197c0 * modest-text-utils.c: - move modest_text_utils_strftime back to plain-old strftime, as some of the GDate stuff is only available since Gtk+ 2.10 pmo-trunk-r741 --- diff --git a/src/modest-text-utils.c b/src/modest-text-utils.c index 7b58257..e5712ed 100644 --- a/src/modest-text-utils.c +++ b/src/modest-text-utils.c @@ -202,11 +202,17 @@ modest_text_utils_inline (const gchar *text, gsize modest_text_utils_strftime(char *s, gsize max, const char *fmt, time_t timet) { - static GDate date; - - g_date_set_time_t (&date, timet); + /* only since Gtk 2.10 + * + *static GDate date; + *g_date_set_time_t (&date, timet); + *return g_date_strftime (s, max, fmt, (const GDate*) &date); + */ - return g_date_strftime (s, max, fmt, (const GDate*) &date); + struct tm *time_tm; + time_tm = localtime (&timet); + + return strftime (s, max, fmt, time_tm); } gchar *