summaryrefslogtreecommitdiffstats
path: root/src/util/format.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/format.rs')
-rw-r--r--src/util/format.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/format.rs b/src/util/format.rs
index cd73605..0c515bb 100644
--- a/src/util/format.rs
+++ b/src/util/format.rs
@@ -23,6 +23,6 @@ pub fn file_size_to_string(file_size: u64) -> String {
pub fn mtime_to_string(mtime: time::SystemTime) -> String {
const MTIME_FORMATTING: &str = "%Y-%m-%d %H:%M";
- let datetime: chrono::DateTime<chrono::offset::Utc> = mtime.into();
+ let datetime: chrono::DateTime<chrono::offset::Local> = mtime.into();
datetime.format(MTIME_FORMATTING).to_string()
}