summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-02-02 10:59:15 +0000
committerrandomdan <randomdan@localhost>2011-02-02 10:59:15 +0000
commit84c5ae459ea7f3496cd6318250e8773f824a424d (patch)
tree46f537a37b263636b45a110071bb1b30531f9716
parentRemove compose functions on column data and add a handle function for type sa... (diff)
downloadproject2-84c5ae459ea7f3496cd6318250e8773f824a424d.tar.bz2
project2-84c5ae459ea7f3496cd6318250e8773f824a424d.tar.xz
project2-84c5ae459ea7f3496cd6318250e8773f824a424d.zip
Change FsRows to return a ptime for moddate
-rw-r--r--project2/fsRows.cpp6
1 files changed, 1 insertions, 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