From bc7492e7e6ee993b70e81c51bc341d15f70dcf12 Mon Sep 17 00:00:00 2001 From: Ben S Date: Mon, 9 Feb 2015 17:55:55 +0000 Subject: [PATCH] Add hour and minute to timestamps --- src/file.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/file.rs b/src/file.rs index 207c103..07b56a1 100644 --- a/src/file.rs +++ b/src/file.rs @@ -304,7 +304,7 @@ impl<'a> File<'a> { } fn timestamp(&self, time_type: TimeType) -> Cell { - let format = date_format!("{:Y} {:M} {2>:D}"); + let format = date_format!("{:Y} {:M} {2>:D} {2>:h}:{02>:m}"); // Need to convert these values from milliseconds into seconds. let time_in_seconds = match time_type { @@ -313,7 +313,7 @@ impl<'a> File<'a> { TimeType::FileCreated => self.stat.created, } as i64 / 1000; - let date = LocalDateTime::at(time_in_seconds).date(); + let date = LocalDateTime::at(time_in_seconds); Cell::paint(Blue.normal(), format.format(date).as_slice()) }