Add '0' to RFC2822

This commit is contained in:
wyhaya 2019-06-06 11:14:59 +08:00 committed by Brandon W Maister
parent 77e2770758
commit a1d304b035
1 changed files with 1 additions and 1 deletions

View File

@ -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