--- a/src/query/reslistpager.cpp
+++ b/src/query/reslistpager.cpp
@@ -161,7 +161,7 @@
time_t mtime = doc.dmtime.empty() ?
atol(doc.fmtime.c_str()) : atol(doc.dmtime.c_str());
struct tm *tm = localtime(&mtime);
- strftime(datebuf, 99, " %Y-%m-%d %H:%M:%S %z", tm);
+ strftime(datebuf, 99, dateFormat().c_str(), tm);
}
// Size information. We print both doc and file if they differ a lot
@@ -414,3 +414,9 @@
return cstr_format;
}
+const string &ResListPager::dateFormat()
+{
+ static const string cstr_format(" %Y-%m-%d %H:%M:%S %z");
+ return cstr_format;
+}
+