Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post Date: Add relative date format #62259

Closed
Tracked by #62680
noisysocks opened this issue Jun 4, 2024 · 1 comment · Fixed by #62298
Closed
Tracked by #62680

Post Date: Add relative date format #62259

noisysocks opened this issue Jun 4, 2024 · 1 comment · Fixed by #62298
Labels
[Block] Post Date Affects the Post Date Block [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.

Comments

@noisysocks
Copy link
Member

Would be good if you could set Post Date to show a relative date. This is common amongst non-block themes.

For example: 12 hours ago, 2 days ago, a month ago.

Screenshot 2024-06-04 at 14 29 56

WordPress has human_time_diff which can be used.

@noisysocks noisysocks added [Type] Enhancement A suggestion for improvement. [Block] Post Date Affects the Post Date Block labels Jun 4, 2024
@ramonjd
Copy link
Member

ramonjd commented Jun 4, 2024

Also humanTimeDiff in the date package since #50089

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Post Date Affects the Post Date Block [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants