FS#3107 - pacman might use iso 8601 date format in its log file
Attached to Project:
Pacman
Opened by solsTiCe (zebul666) - Tuesday, 23 August 2005, 16:13 GMT
Last edited by Roman Kyrylych (Romashka) - Saturday, 25 November 2006, 14:45 GMT
Opened by solsTiCe (zebul666) - Tuesday, 23 August 2005, 16:13 GMT
Last edited by Roman Kyrylych (Romashka) - Saturday, 25 November 2006, 14:45 GMT
|
Details
instead of seeing something like that in /var/log/pacman.log
(or whatever is the log file of pacman )
[08/23/05 17:52] upgraded pacman (2.9.6-2 -> 2.9.6-2) it would be nice to see something like that [2005-08-23 17:52] synchronizing package lists Note the date change Here is the patch --- pacman-2.9.6/src/pacman.c 2005-04-25 20:19:24.000000000 +0200 +++ pacman-2.9.6/src/pacman_new.c 2005-08-23 17:40:02.000000000 +0200 @@ -3857,8 +3857,8 @@ t = time(NULL); tm = localtime(&t); - fprintf(logfd, "[%02d/%02d/%02d %02d:%02d] %s\n", tm->tm_mon+1, tm->tm_mday, - tm->tm_year-100, tm->tm_hour, tm->tm_min, msg); + fprintf(logfd, "[%4d-%02d-%02d %02d:%02d] %s\n", tm->tm_year+1900, + tm->tm_mon+1, tm->tm_mday, tm->tm_hour, tm->tm_min, msg); } } |
This task depends upon
Closed by Aaron Griffin (phrakture)
Friday, 26 January 2007, 01:54 GMT
Reason for closing: Implemented
Additional comments about closing: In CVS
Friday, 26 January 2007, 01:54 GMT
Reason for closing: Implemented
Additional comments about closing: In CVS