1.5.9: fix bad tz correction in email dates + display tz in reslist

This commit is contained in:
dockes
2006-11-07 18:28:49 +00:00
parent 7814e0fb0a
commit ff78e94b2c
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
#ifndef lint
static char rcsid[] = "@(#$Id: reslist.cpp,v 1.3 2006-09-29 08:24:16 dockes Exp $ (C) 2005 J.F.Dockes";
static char rcsid[] = "@(#$Id: reslist.cpp,v 1.4 2006-11-07 18:28:49 dockes Exp $ (C) 2005 J.F.Dockes";
#endif
#include <time.h>
@@ -351,7 +351,7 @@ void ResList::resultPageNext()
time_t mtime = doc.dmtime.empty() ?
atol(doc.fmtime.c_str()) : atol(doc.dmtime.c_str());
struct tm *tm = localtime(&mtime);
strftime(datebuf, 99, "&nbsp;%Y-%m-%d&nbsp;%H:%M:%S", tm);
strftime(datebuf, 99, "&nbsp;%Y-%m-%d&nbsp;%H:%M:%S %z", tm);
}
// Size information. We print both doc and file if they differ a lot