Skip to content

Store metadata fetched_at in UTC - #435

Merged
andrew merged 1 commit into
git-pkgs:mainfrom
pinguinfuss:issue-434-metadata-ttl-tz
Oct 12, 2026
Merged

andrew merged 1 commit into
git-pkgs:mainfrom
pinguinfuss:issue-434-metadata-ttl-tz

Conversation

@pinguinfuss

Copy link
Copy Markdown
Contributor

Fixes #434

On Postgres, fetched_at is a TIMESTAMP without zone. It was written in local time but read back as UTC, so east of UTC metadata_ttl expired hours late. It is now stored in UTC. Entries cached before the update expire late one last time, then are stored in UTC. #428 does the same for artifacts.

…l no longer expires hours late when the proxy runs east of UTC. Entries written before this expire late one last time and are stored in UTC on their next refresh.

@andrew andrew left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UTC writes fix metadata expiry on Postgres without changing the schema. No changes requested.

@andrew
andrew merged commit 16ebeaa into git-pkgs:main Oct 12, 2026
6 checks passed
@pinguinfuss
pinguinfuss deleted the issue-434-metadata-ttl-tz branch October 12, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

metadata_ttl runs hours late on Postgres when the proxy isn’t in UTC

2 participants