projects
/
conv-inbox
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fad1e5e
)
Use locale time format
author
Artem Garmash
<artemgarmash@gmail.com>
Sat, 9 Jan 2010 21:34:52 +0000
(23:34 +0200)
committer
Artem Garmash
<artem.garmash@nokia.com>
Sun, 27 Jun 2010 19:13:42 +0000
(22:13 +0300)
src/el-home-applet.c
patch
|
blob
|
history
diff --git
a/src/el-home-applet.c
b/src/el-home-applet.c
index
5ee1406
..
3a2088d
100644
(file)
--- 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);