Fixes chrono warnings (#49)

This commit is contained in:
Óscar García Amor 2024-11-06 13:40:49 +01:00 committed by GitHub
parent c1862d30ad
commit 2e5d031d1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View file

@ -150,7 +150,7 @@ impl StorageTxn for Txn {
) {
(Some(ts), Some(vs), Some(v)) => Some(Snapshot {
version_id: v.0,
timestamp: Utc.timestamp(ts, 0),
timestamp: Utc.timestamp_opt(ts, 0).unwrap(),
versions_since: vs,
}),
_ => None,