diff options
author | randomdan <randomdan@localhost> | 2011-02-02 10:59:15 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-02-02 10:59:15 +0000 |
commit | 225524a22b361eb0c7857ebc97d398b591ac016b (patch) | |
tree | 46f537a37b263636b45a110071bb1b30531f9716 | |
parent | Remove compose functions on column data and add a handle function for type sa... (diff) | |
download | project2-225524a22b361eb0c7857ebc97d398b591ac016b.tar.bz2 project2-225524a22b361eb0c7857ebc97d398b591ac016b.tar.xz project2-225524a22b361eb0c7857ebc97d398b591ac016b.zip |
Change FsRows to return a ptime for moddate
-rw-r--r-- | project2/fsRows.cpp | 6 |
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 |