Use locale time format
authorArtem Garmash <artemgarmash@gmail.com>
Sat, 9 Jan 2010 21:34:52 +0000 (23:34 +0200)
committerArtem Garmash <artem.garmash@nokia.com>
Sun, 27 Jun 2010 19:13:42 +0000 (22:13 +0300)
src/el-home-applet.c

index 5ee1406..3a2088d 100644 (file)
@@ -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);