mirror of
https://github.com/Llewellynvdm/exa.git
synced 2025-01-14 17:19:56 +00:00
parent
a460f257d7
commit
910693f921
@ -345,12 +345,11 @@ impl<'a> File<'a> {
|
||||
|
||||
fn timestamp(&self, time_type: TimeType, current_year: i64, locale: &locale::Time) -> Cell {
|
||||
|
||||
// Need to convert these values from milliseconds into seconds.
|
||||
let time_in_seconds = match time_type {
|
||||
TimeType::FileAccessed => self.stat.as_raw().atime(),
|
||||
TimeType::FileModified => self.stat.as_raw().mtime(),
|
||||
TimeType::FileCreated => self.stat.as_raw().ctime(),
|
||||
} as i64 / 1000;
|
||||
} as i64;
|
||||
|
||||
let date = LocalDateTime::at(time_in_seconds);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user