summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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