diff --git a/src/offset/utc.rs b/src/offset/utc.rs index 812d7b062e..551e53f40d 100644 --- a/src/offset/utc.rs +++ b/src/offset/utc.rs @@ -68,7 +68,7 @@ impl Utc { let now = SystemTime::now().duration_since(UNIX_EPOCH).expect("system time before Unix epoch"); let naive = - NaiveDateTime::from_timestamp_opt(now.as_secs() as i64, now.subsec_nanos() as u32) + NaiveDateTime::from_timestamp_opt(now.as_secs() as i64, now.subsec_nanos()) .unwrap(); DateTime::from_utc(naive, Utc) }