Revisions show incorrect date #1759
Closed
khoinguyenpham04
announced in
Roadmap
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This Roadmap discussion mirrors #919: Revisions show incorrect date.
Use this discussion to upvote the roadmap item and discuss priority, use cases, and product feedback. Keep implementation tracking, reproduction details, and PR-specific feedback on the source issue.
bug,roadmap/1.0,roadmap/editorial-safetyOriginal Issue
Description
It always showed "2 hours ago" even though I created them a second ago. After the fix it show "just now" correctly.
In
dialect-helpers.tsthe current time is created with this code:(same with the function
currentTimestampValue)My suggestion would be to change it to:
This would avoid bugs when parsing these Dates in JS.
new Date('2026-05-03 17:26:23')is parsed incorrectly whilenew Date('2026-05-03T17:26:23Z')is parsed correctly.I'm not sure if a migration would need to be created for this change.
Steps to reproduce
Make a change to a post and then open revisions with a database other than postgres.
Environment
Logs / error output
All reactions