diff --git a/src/datetime.rs b/src/datetime.rs index afc0ced..0e86f2a 100644 --- a/src/datetime.rs +++ b/src/datetime.rs @@ -283,7 +283,7 @@ mod tests { #[test] fn display() { let mut dt = DateTime::from_timestamp(1706571482); - assert_eq!(dt.display(), "Mon Jan 29 23:38:02 Utc 2024"); + assert_eq!(dt.display(), "Mon Jan 29 23:38:02 UTC 2024"); dt.zone = TimeZone::Offset { sign: crate::zone::Sign::Positive, hours: 4, diff --git a/src/zone.rs b/src/zone.rs index 2effadc..53f9442 100644 --- a/src/zone.rs +++ b/src/zone.rs @@ -97,7 +97,7 @@ impl TimeZone { pub fn display(&self) -> String { match self { - Self::Utc => "Utc".into(), + Self::Utc => "UTC".into(), _ => format!("{self}"), } }