Skip to content

Commit

Permalink
Add '0' to RFC2822
Browse files Browse the repository at this point in the history
  • Loading branch information
wyhaya authored and quodlibetor committed Jun 25, 2019
1 parent 77e2770 commit a1d304b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/format/mod.rs
Expand Up @@ -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
Expand Down

0 comments on commit a1d304b

Please sign in to comment.