Mercurial > pidgin
diff src/log.c @ 9592:9c78aaa4117e
[gaim-migrate @ 10435]
" This patch moves from the localized date format %c to
the ISO date format as the user log does. This makes
logs locale independent." --Eduardo P?rez
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 25 Jul 2004 16:19:44 +0000 |
parents | db95a6641ec1 |
children | 1b13160bf5a4 |
line wrap: on
line diff
--- a/src/log.c Sun Jul 25 00:47:10 2004 +0000 +++ b/src/log.c Sun Jul 25 16:19:44 2004 +0000 @@ -560,7 +560,7 @@ gaim_markup_html_to_xhtml(message, &msg_fixed, NULL); if(log->type == GAIM_LOG_SYSTEM){ - strftime(date, sizeof(date), "%c", localtime(&time)); + strftime(date, sizeof(date), "%Y-%m-%d %H:%M:%S", localtime(&time)); fprintf(data->file, "---- %s @ %s ----<br/>\n", msg_fixed, date); } else { strftime(date, sizeof(date), "%H:%M:%S", localtime(&time)); @@ -749,7 +749,7 @@ stripped = gaim_markup_strip_html(message); if(log->type == GAIM_LOG_SYSTEM){ - strftime(date, sizeof(date), "%c", localtime(&time)); + strftime(date, sizeof(date), "%Y-%m-%d %H:%M:%S", localtime(&time)); fprintf(data->file, "---- %s @ %s ----\n", stripped, date); } else { strftime(date, sizeof(date), "%H:%M:%S", localtime(&time));