From 84c5ae459ea7f3496cd6318250e8773f824a424d Mon Sep 17 00:00:00 2001 From: randomdan Date: Wed, 2 Feb 2011 10:59:15 +0000 Subject: Change FsRows to return a ptime for moddate --- project2/fsRows.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/project2/fsRows.cpp b/project2/fsRows.cpp index 5d62d38..49bb57c 100644 --- a/project2/fsRows.cpp +++ b/project2/fsRows.cpp @@ -273,11 +273,7 @@ FsRows::fileSize() const VariableType FsRows::fileModDate() const { - char buf[40]; - struct tm tm; - gmtime_r(&curStat.st_mtime, &tm); - strftime(buf, sizeof(buf), "%F %T", &tm); - return Glib::ustring(buf); + return boost::posix_time::from_time_t(curStat.st_mtime); } VariableType -- cgit v1.2.3