Page MenuHomePhabricator

Have some way to specify use user's time preference in #time and #timel
Closed, DeclinedPublic

Description

split off from bug 32351.

User's have preferences for how to display time. Should perhaps have some way to use those in #time . See discussion on bug 32351 (And some of the obsolete patches).

Possible implementations:
*Have {{#time:|Some time}} use the user prefs (but then how do you specify just date, just time or date and time)
*have some sort of new formatting characters to denote user's preferences time (but then this breaks from having all formatting characters being handled in Language.php)
*Wontfix and Tell users to use {{ #formatdate: {{ #time: Y-m-d | 2011-11-10 01:00 YAKT }} }}


Version: unspecified
Severity: enhancement

Details

Reference
bz32923

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:08 AM
bzimport added a project: ParserFunctions.
bzimport set Reference to bz32923.
bzimport added a subscriber: Unknown Object (MLST).

This is exactly what #formatdate is for. See https://en.wikipedia.org/wiki/Separation_of_concerns. Personally, I would avoid doing this anyway, since it leads to cache fragmentation.