Mercurial > pidgin.yaz
diff src/gtkconv.c @ 13104:e1e5462b7d81
[gaim-migrate @ 15466]
Rework lots of date parsing. I either introduced a whole lot of bugs, or I've made sure all dates are localized properly now. Only time will tell which it is... ;)
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 02 Feb 2006 19:50:51 +0000 |
parents | 0aa231ebbfd5 |
children | a0a4b44239e8 |
line wrap: on
line diff
--- a/src/gtkconv.c Thu Feb 02 19:39:12 2006 +0000 +++ b/src/gtkconv.c Thu Feb 02 19:50:51 2006 +0000 @@ -4666,14 +4666,10 @@ conv, &tm); if (mdate == NULL) { - char buf[64]; - if (time(NULL) > mtime + 20*60) /* show date if older than 20 minutes */ - strftime(buf, sizeof(buf), "%x %X", &tm); + mdate = g_strdup(gaim_date_format_long(&tm)); else - strftime(buf, sizeof(buf), "%X", &tm); - - mdate = g_strdup(buf); + mdate = g_strdup(gaim_time_format(&tm)); } if(gc)