You've already forked parse_datetime
mirror of
https://github.com/uutils/parse_datetime.git
synced 2026-06-10 16:13:15 -07:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user