Merge pull request #38 from cakebaker/use_timestamp_opt_instead_of_timestamp

Use timestamp_opt() instead of timestamp() in test
This commit is contained in:
Terts Diepraam
2023-08-28 10:06:16 +02:00
committed by GitHub
+1 -1
View File
@@ -255,7 +255,7 @@ mod tests {
];
for offset in offsets {
let time = Utc.timestamp(offset, 0);
let time = Utc.timestamp_opt(offset, 0).unwrap();
let dt = from_str(format!("@{}", offset));
assert_eq!(dt.unwrap(), time);
}