From 83cd70bb62421cffc0d3b7ee7d4acf04606a7aef Mon Sep 17 00:00:00 2001 From: Mathijs van de Nes Date: Fri, 21 Nov 2014 09:49:15 +0100 Subject: [PATCH] Unsigned fmt has been removed --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index 412b0151..b83e74bb 100644 --- a/src/util.rs +++ b/src/util.rs @@ -11,7 +11,7 @@ pub fn msdos_datetime_to_tm(time: u16, date: u16) -> Tm let months = (date & 0b0000000111100000) >> 5; let years = (date & 0b1111111000000000) >> 9; - let datetime = format!("{:04u}-{:02u}-{:02u} {:02u}:{:02u}:{:02u}", + let datetime = format!("{:04}-{:02}-{:02} {:02}:{:02}:{:02}", years as uint + 1980, months, days,