Page MenuHomePhabricator

Change the signature to respect viewing users time format ( 12h or 24h )
Closed, DuplicatePublicFeature

Description

Feature summary (what you would like to be able to do and where):
I would like to show the signature of users in Talk pages in the users own prefered time format, 24 or 12h - based on their preferences or system default. Looks like now it is dependent on the time format of the user which signature it is.

Use case(s)
The issue was discovered on OpenStreetMap wiki running 1.45. OSM wiki date format should respect user preference #1242 github
When you view a talk page which consist of multiple users, a signature time respects your preference of 12h or 24h clock.

Benefits (why should this be implemented?):
It would be great for international collaborations.

Event Timeline

I would like to show the signature of users in Talk pages

I assume this about "classic" talk pages, with no DiscussionTools or deprecated StructuredDiscussions extension installed.

https://www.mediawiki.org/wiki/Help:Signatures says

Note that timestamps are currently formatted by default and saved according to the default locale conventions (language, script, date and time format) used on each wiki, and not according to the conventions of your current preferred language.

Per T27476, closing this as a duplicate of T230653.

OSM is using javascript gadget to swap the 24 hr dates to 12 hour ones

Yes, this is my version of CommentsInLocalTime, which is configurable. The gadget currently defaults to whatever Moment.js considers to be a good default for the current interface language, but I’m looking into migrating it to Intl.DateTimeFormat and mediawiki.DateFormatter (T392532).

The gadget configures Moment.js to match the interface language. If the original reporter was using MediaWiki in the en locale, that would explain the American-style 12-hour clock. They can switch to en-gb for instance to get 24-hour clock.