Truly independent web browser
LibDatabase+LibWebView: Round stored times as time points
Shannon Booth7982b0a6ba95
diff --git a/Libraries/LibDatabase/Database.cpp b/Libraries/LibDatabase/Database.cppindex 3ff72cf21e9..2e458bcdaca 100644--- a/Libraries/LibDatabase/Database.cpp+++ b/Libraries/LibDatabase/Database.cpp@@ -247,7 +247,7 @@ ErrorOr<void> Database::try_apply_placeholder(StatementID statement_id, int inde} else if constexpr (IsOneOf<ValueType, ByteBuffer, Bytes, ReadonlyBytes>) {TRY(bind_blob_bytes(statement, index, value));} else if constexpr (IsSame<ValueType, UnixDateTime>) {- TRY(try_apply_placeholder(statement_id, index, value.offset_to_epoch().to_milliseconds()));+ TRY(try_apply_placeholder(statement_id, index, value.milliseconds_since_epoch()));} else if constexpr (IsSame<ValueType, double>) {SQL_TRY(sqlite3_bind_double(statement, index, value));} else if constexpr (IsIntegral<ValueType>) {diff --git a/Libraries/LibWebView/SessionStore.cpp b/Libraries/LibWebView/SessionStore.cppindex a5f6d939d22..802a4e32554 100644--- a/Libraries/LibWebView/SessionStore.cpp+++ b/Libraries/LibWebView/SessionStore.cpp@@ -992,7 +992,7 @@ ErrorOr<Vector<ClosedSessionTab>> SessionStore::PersistedStorage::take_closed_unstatic UnixDateTime canonicalized_to_milliseconds(UnixDateTime time){// Match persisted millisecond precision when ordering closes.- return UnixDateTime::from_milliseconds_since_epoch(time.offset_to_epoch().to_milliseconds());+ return UnixDateTime::from_milliseconds_since_epoch(time.milliseconds_since_epoch());}static bool is_storable(Optional<SessionHistorySnapshot> const& history)