From 5727ea7122dcddd6c342cefe3e08cd47d8d2af80 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Thu, 18 Aug 2011 15:26:00 +0200 Subject: [PATCH] GUI: switch to uniform yyyy-mm-dd representation of date (instead of a locale-sensitive one in some places) --- src/qtgui/restable.cpp | 8 -------- src/query/reslistpager.cpp | 4 ---- 2 files changed, 12 deletions(-) diff --git a/src/qtgui/restable.cpp b/src/qtgui/restable.cpp index 955d7730..946356c2 100644 --- a/src/qtgui/restable.cpp +++ b/src/qtgui/restable.cpp @@ -172,11 +172,7 @@ static string dategetter(const string&, const Rcl::Doc& doc) time_t mtime = doc.dmtime.empty() ? atol(doc.fmtime.c_str()) : atol(doc.dmtime.c_str()); struct tm *tm = localtime(&mtime); -#ifndef sun strftime(datebuf, 99, "%Y-%m-%d", tm); -#else - strftime(datebuf, 99, "%x", tm); -#endif } return datebuf; } @@ -189,11 +185,7 @@ static string datetimegetter(const string&, const Rcl::Doc& doc) time_t mtime = doc.dmtime.empty() ? atol(doc.fmtime.c_str()) : atol(doc.dmtime.c_str()); struct tm *tm = localtime(&mtime); -#ifndef sun strftime(datebuf, 99, "%Y-%m-%d %H:%M:%S %z", tm); -#else - strftime(datebuf, 99, "%c", tm); -#endif } return datebuf; } diff --git a/src/query/reslistpager.cpp b/src/query/reslistpager.cpp index 4ac22670..50deff8f 100644 --- a/src/query/reslistpager.cpp +++ b/src/query/reslistpager.cpp @@ -158,11 +158,7 @@ void ResListPager::displayDoc(RclConfig *config, time_t mtime = doc.dmtime.empty() ? atol(doc.fmtime.c_str()) : atol(doc.dmtime.c_str()); struct tm *tm = localtime(&mtime); -#ifndef sun strftime(datebuf, 99, " %Y-%m-%d %H:%M:%S %z", tm); -#else - strftime(datebuf, 99, " %Y-%m-%d %H:%M:%S %Z", tm); -#endif } // Size information. We print both doc and file if they differ a lot