Add '0' to RFC2822
This commit is contained in:
parent
77e2770758
commit
a1d304b035
|
@ -553,7 +553,7 @@ pub fn format<'a, I>(
|
||||||
let sec = t.second() + t.nanosecond() / 1_000_000_000;
|
let sec = t.second() + t.nanosecond() / 1_000_000_000;
|
||||||
try!(write!(
|
try!(write!(
|
||||||
result,
|
result,
|
||||||
"{}, {:2} {} {:04} {:02}:{:02}:{:02} ",
|
"{}, {:02} {} {:04} {:02}:{:02}:{:02} ",
|
||||||
SHORT_WEEKDAYS[d.weekday().num_days_from_monday() as usize],
|
SHORT_WEEKDAYS[d.weekday().num_days_from_monday() as usize],
|
||||||
d.day(), SHORT_MONTHS[d.month0() as usize], d.year(),
|
d.day(), SHORT_MONTHS[d.month0() as usize], d.year(),
|
||||||
t.hour(), t.minute(), sec
|
t.hour(), t.minute(), sec
|
||||||
|
|
Loading…
Reference in New Issue