changeset 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 bc910eb2679f
children a64febebdd1e
files ChangeLog src/log.c
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Jul 25 00:47:10 2004 +0000
+++ b/ChangeLog	Sun Jul 25 16:19:44 2004 +0000
@@ -7,6 +7,7 @@
 	* Visual display of ops/voice/halfops/so on in Chats (Stu Tomlinson)
 
 	Bug Fixes:
+	* Use ISO date format for the system log (Eduardo Pérez)
 	* Long buddy lists with irc should cause flooding disconnects less
 	  (Stu Tomlinson)
 
@@ -66,7 +67,7 @@
 	  logged in using the web messenger method
 
 	Bug Fixes:
-	* Fixed Yahoo! authentication problems.  (Cerulean Studios)	
+	* Fixed Yahoo! authentication problems.  (Cerulean Studios)
 	* Non-looping animated icons no longer cause Gaim to freeze
 	* Flashing windows should work again for unix in window managers that
 	  support the URGENT hint (Etan Reisner)
--- 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));