mirror of
https://github.com/chronotope/chrono.git
synced 2025-10-02 15:26:12 +00:00
Merge pull request #433 from eaufavor/fix-rfc2822-comment
Fix comment: correct the comment of RFC2822 format
This commit is contained in:
commit
a10ced77f9
@ -576,7 +576,7 @@ fn format_inner<'a>(
|
|||||||
off.map(|&(_, off)| write_local_minus_utc(result, off, true, false)),
|
off.map(|&(_, off)| write_local_minus_utc(result, off, true, false)),
|
||||||
&Internal(InternalFixed { val: InternalInternal::TimezoneOffsetPermissive }) =>
|
&Internal(InternalFixed { val: InternalInternal::TimezoneOffsetPermissive }) =>
|
||||||
panic!("Do not try to write %#z it is undefined"),
|
panic!("Do not try to write %#z it is undefined"),
|
||||||
&RFC2822 => // same as `%a, %e %b %Y %H:%M:%S %z`
|
&RFC2822 => // same as `%a, %d %b %Y %H:%M:%S %z`
|
||||||
if let (Some(d), Some(t), Some(&(_, off))) = (date, time, off) {
|
if let (Some(d), Some(t), Some(&(_, off))) = (date, time, off) {
|
||||||
let sec = t.second() + t.nanosecond() / 1_000_000_000;
|
let sec = t.second() + t.nanosecond() / 1_000_000_000;
|
||||||
write!(
|
write!(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user