Mercurial > pidgin
changeset 7453:6f5918e4f668
[gaim-migrate @ 8066]
SimGuy claims this makes up for windows sucking
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Fri, 07 Nov 2003 02:27:24 +0000 |
parents | 20cb73e1e964 |
children | 50f4386a8262 |
files | src/log.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/log.c Fri Nov 07 01:31:43 2003 +0000 +++ b/src/log.c Fri Nov 07 02:27:24 2003 +0000 @@ -288,7 +288,7 @@ char *dir; FILE *file; - strftime(date, sizeof(date), "%F.%H%M%S.xml", localtime(&log->time)); + strftime(date, sizeof(date), "%Y-%m-%d.%H%M%S.xml", localtime(&log->time)); dir = g_build_filename(ud, "logs", NULL); mkdir (dir, S_IRUSR | S_IWUSR | S_IXUSR); @@ -323,12 +323,12 @@ fprintf(log->logger_data, "<?xml version='1.0' encoding='UTF-8' ?>\n" "<?xml-stylesheet href='file:///usr/src/web/htdocs/log-stylesheet.xsl' type='text/xml' ?>\n"); - strftime(date, sizeof(date), "%F %T", localtime(&log->time)); + strftime(date, sizeof(date), "%Y-%m-%d %H:%M:%S", localtime(&log->time)); fprintf(log->logger_data, "<conversation time='%s' screenname='%s' protocol='%s'>\n", date, log->name, prpl); } - strftime(date, sizeof(date), "%T", localtime(&time)); + strftime(date, sizeof(date), "%H:%M:%S", localtime(&time)); gaim_markup_html_to_xhtml(message, &xhtml, NULL); if (from) fprintf(log->logger_data, "<message %s %s from='%s' time='%s'>%s</message>\n", @@ -392,7 +392,7 @@ char *dir; FILE *file; - strftime(date, sizeof(date), "%F.%H%M%S.txt", localtime(&log->time)); + strftime(date, sizeof(date), "%Y-%m-%d.%H%M%S.txt", localtime(&log->time)); dir = g_build_filename(ud, "logs", NULL); mkdir (dir, S_IRUSR | S_IWUSR | S_IXUSR); @@ -425,12 +425,12 @@ return; } g_free(filename); - strftime(date, sizeof(date), "%F %T", localtime(&log->time)); + strftime(date, sizeof(date), "%Y-%m-%d %H:%M:%S", localtime(&log->time)); fprintf(log->logger_data, "Conversation with %s at %s on %s (%s)\n", log->name, date, gaim_account_get_username(log->account), prpl); } - strftime(date, sizeof(date), "%T", localtime(&time)); + strftime(date, sizeof(date), "%H:%M:%S", localtime(&time)); stripped = gaim_markup_strip_html(message); fprintf(log->logger_data, "(%s) %s%s %s\n", date, from ? from : "", from ? ":" : "", stripped); fflush(log->logger_data);