diff --git a/dump/src/reader/v4/mod.rs b/dump/src/reader/v4/mod.rs index 140890d78..34df609b1 100644 --- a/dump/src/reader/v4/mod.rs +++ b/dump/src/reader/v4/mod.rs @@ -182,8 +182,8 @@ impl V4IndexReader { let metadata = IndexMetadata { uid: name, primary_key: meta.primary_key, - created_at: created_at.unwrap_or(OffsetDateTime::now_utc()), - updated_at: updated_at.unwrap_or(OffsetDateTime::now_utc()), + created_at: created_at.unwrap_or_else(OffsetDateTime::now_utc), + updated_at: updated_at.unwrap_or_else(OffsetDateTime::now_utc), }; let ret = V4IndexReader {