Last modified: 2011-03-20 10:51:10 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T17045, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15045 - #time to support timezone-related format characters
#time to support timezone-related format characters
Status: RESOLVED DUPLICATE of bug 7133
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Tim Starling
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-05 09:54 UTC by Agony
Modified: 2011-03-20 10:51 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Agony 2008-08-05 09:54:35 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)
Comment 1 Siebrand Mazeland 2008-08-10 23:44:52 UTC
Assigned to Tim for triage.
Comment 2 Tim Starling 2008-08-14 04:10:26 UTC
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?
Comment 3 Agony 2008-08-14 11:33:41 UTC
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}}.
Comment 4 Tim Starling 2008-10-06 08:56:24 UTC
I want to know: how will it help you write an encyclopedia? Please answer in English, not Template.
Comment 5 Agony 2008-10-06 11:16:34 UTC
It doesn't, that is reason why I marked this as an enhancement :)
Comment 6 Agony 2008-10-06 11:35:42 UTC
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]]
Comment 7 Niklas Laxström 2011-03-20 10:51:10 UTC

*** This bug has been marked as a duplicate of bug 7133 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links