Repository navigation
fix: store realtime.messages timestamps in UTC - #2365
Open
mandar1045 wants to merge 1 commit into
Open
mandar1045 wants to merge 1 commit into
mandar1045 wants to merge 1 commit into
Conversation
mandar1045
force-pushed
the
fix/messages-utc-timestamps
branch
from
October 8, 2026 02:15
9e4fd6f to
7df1b32
Compare
inserted_at and updated_at defaulted to now(), which becomes the session's
local time when cast to timestamp. Replay reads them as UTC, so messages
sent from a non-UTC session were replayed from the wrong window or not at
all.
Default both to timezone('utc', now()), like
realtime.subscription.created_at.
Fixes supabase#2364
mandar1045
force-pushed
the
fix/messages-utc-timestamps
branch
from
October 8, 2026 06:45
7df1b32 to
18efff3
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2364
inserted_atandupdated_atdefaulted tonow(), which turns into the session's local time when cast totimestamp. Replay and everything else reads them as UTC, so messages sent from a non-UTC session were replayed from the wrong window or not at all.This switches both defaults to
timezone('utc', now()), same asrealtime.subscription.created_at. That coversrealtime.send,send_binaryand direct inserts without touching the functions.tenant_schemaand the pg15/pg17 dumpsAsia/KolkatasessionWalrus suite passes on 15 and 17, from both the dumps and the migrations.