Last modified: 2011-03-20 10:51:10 UTC
Requesting for #time -function to support at least http://www.php.net/date timezone-related format characters: - e (Timezone identifier) - T (Timezone abbreviation) - O (Difference to Greenwich time (GMT) in hours)
Assigned to Tim for triage.
Note that this would have to be changed in the core Language::sprintfDate(), not in ParserFunctions. Agony, can you give us an idea of the applications of this feature, so that we can prioritise it?
Ideally this would act just like PHP date() but because of parsing at least timezone abbreviation is must (because of possibility to set local time different than UTC). Otherwise date-calculating templates can calculate *huh* results. For example when timezone is calculated simply with {{#ifexpr: {{LOCALHOUR}}-{{CURRENTHOUR}} = 3 | EEST | EET }} (example from finnish Wikipedia template {{LOCALTIMEZONE}} which do not work between 00 to 03), would today result be {{#time: Y-m-d | + 3 months}} {{LOCALTIMEZONE}} == 2008-11-14 EEST (and EET starts 2008-10-26). "e" is not so important because it can be managed with single template, but "O" would help once again when calculating dates and times. Also "P" could be great add because after this {{#time: c}} could be splitted separate format characters {{#time: Y-m-d\TH:i:sP}}.
I want to know: how will it help you write an encyclopedia? Please answer in English, not Template.
It doesn't, that is reason why I marked this as an enhancement :)
Oh you wanted usecases? Here are couple usecases where time is calculated forward to certain date: [[:fi:Wikipedia:Poistettavat sivut|Articles for deletion]] [[:fi:Wikipedia:Ylläpitäjät|Requests for adminship]] [[:fi:Wikipedia:Suositellut sivut|Featured article candidates]] [[:fi:Wikipedia:Hyvät artikkelit|Good article nominations]]
*** This bug has been marked as a duplicate of bug 7133 ***