Wp-calypso: Posts: use relative date up to a month; after that show the exact date

Created on 17 Oct 2017  Â·  5Comments  Â·  Source: Automattic/wp-calypso

Similar to how we show dates now with comments, let's show the relative date only for recent posts. Posts older than a month should show the exact date.

Bonus: improve the tool-tip date / time output. Currently it's difficult to read: 2017-09- 09T14:47:29-07:00. We could improve that to be something more readable, like: 2017-09-09 at 14:47.

Steps to reproduce

Go to Blog Posts for a site, and view the post card to see the post's publish date.

What I expected

To see the actual date and not elapsed time, for posts older than 1 month.

screen shot 2017-10-17 at 13 37 37

Proposed in an internal Slack chat by Bob, Megs, Andy P — ref: p1507740672000430-slack-triton

CC @mattsherman @shaunandrews

Posts [Type] Enhancement

Most helpful comment

This is already addressed in the upcoming condensed post list redesign.

We used a cutoff of one week for switching to actual dates.

See: https://github.com/Automattic/wp-calypso/tree/master/client/blocks/post-time

All 5 comments

This is already addressed in the upcoming condensed post list redesign.

We used a cutoff of one week for switching to actual dates.

See: https://github.com/Automattic/wp-calypso/tree/master/client/blocks/post-time

You can see this in action currently in production for CPTs.

I’ll create a backlog item to address the tooltip formatting.

Closing this issue as it was addressed back in October. Related issues are still open and will be addressed separately.

Was this page helpful?
0 / 5 - 0 ratings