Capitalize "UTC" when pretty-printing
This commit is contained in:
parent
3594cfafdf
commit
c0def257fb
@ -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,
|
||||
|
@ -97,7 +97,7 @@ impl TimeZone {
|
||||
|
||||
pub fn display(&self) -> String {
|
||||
match self {
|
||||
Self::Utc => "Utc".into(),
|
||||
Self::Utc => "UTC".into(),
|
||||
_ => format!("{self}"),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user