From a1d304b035ce0c6086c9769594994abdacdc28ae Mon Sep 17 00:00:00 2001 From: wyhaya Date: Thu, 6 Jun 2019 11:14:59 +0800 Subject: [PATCH] Add '0' to RFC2822 --- src/format/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/format/mod.rs b/src/format/mod.rs index a0a9333..544088a 100644 --- a/src/format/mod.rs +++ b/src/format/mod.rs @@ -553,7 +553,7 @@ pub fn format<'a, I>( let sec = t.second() + t.nanosecond() / 1_000_000_000; try!(write!( result, - "{}, {:2} {} {:04} {:02}:{:02}:{:02} ", + "{}, {:02} {} {:04} {:02}:{:02}:{:02} ", SHORT_WEEKDAYS[d.weekday().num_days_from_monday() as usize], d.day(), SHORT_MONTHS[d.month0() as usize], d.year(), t.hour(), t.minute(), sec