From: Artem Garmash Date: Sat, 9 Jan 2010 21:34:52 +0000 (+0200) Subject: Use locale time format X-Git-Url: https://vcs.maemo.org/git/?p=conv-inbox;a=commitdiff_plain;h=8162bb4bf42ebd9ab7811c5e86a11f043297dd84 Use locale time format --- diff --git a/src/el-home-applet.c b/src/el-home-applet.c index 5ee1406..3a2088d 100644 --- a/src/el-home-applet.c +++ b/src/el-home-applet.c @@ -618,7 +618,7 @@ format_time (time_t t) time_t now; struct tm now_tm, t_tm; - const gchar *format = "%Y.%m.%d %T"; + const gchar *format = "%x %X"; gchar *result = g_malloc0 (RESULT_SIZE); now = time (NULL); @@ -628,7 +628,7 @@ format_time (time_t t) if ((now_tm.tm_year == t_tm.tm_year) && (now_tm.tm_mon == t_tm.tm_mon) && (now_tm.tm_mday == t_tm.tm_mday)) - format = "%T"; + format = "%X"; strftime (result, RESULT_SIZE, format, &t_tm);