Display different date/time formats (based on the age of the message) at /messages

Created on 10 December 2010, over 14 years ago
Updated 24 April 2025, 23 days ago

To improve the display of messages at /messages, Berdir and I discussed displaying different date/time formats based on the time range (that's what Gmail does). I also took a look at how Gmail does it to get some more inspiration. I'm creating this issue thread at Berdir's request.

Here are my suggestions for formats to use based on how old a given message is:

Current hour: 25 min ago
Current day (but not within the hour): 10:30 am
Current year (but not on the same day): Nov 25
Prior years (not the current year): 11/25/08

Ideally, these would be configurable by the site admin for all four time ranges. Or alternately, is there any way to have the PM module add its own date and time formats (which the site admin could then change at admin/config/regional/date-time)?

--Ben

✨ Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States BenK

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024