GUI: switch to uniform yyyy-mm-dd representation of date (instead of a locale-sensitive one in some places)

This commit is contained in:
Jean-Francois Dockes 2011-08-18 15:26:00 +02:00
parent 8cea0dd0c9
commit 5727ea7122
2 changed files with 0 additions and 12 deletions

View File

@ -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;
}

View File

@ -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