Last modified: 2011-04-14 15:11:15 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 T20766, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18766 - add ISO 8601 support for offset param
add ISO 8601 support for offset param
Status: NEW
Product: MediaWiki
Classification: Unclassified
History/Diffs (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-11 13:27 UTC by John Mark Vandenberg
Modified: 2011-04-14 15:11 UTC (History)
1 user (show)

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


Attachments

Description John Mark Vandenberg 2009-05-11 13:27:27 UTC
I am often copying datestamps around and dropping them into URLs as offsets to page history and user contribs.

Currently I need to copy "2001-01-15T16:12:34" and turn it into "20010115161234" before it will work.  This seems unnecessary as the former is easily parsed.
Comment 1 Brion Vibber 2009-05-14 23:54:11 UTC
Looks like currently we require the Z on the end:

> return wfTimestamp(TS_MW, '2001-01-15T16:12:34');
19700101000000

> return wfTimestamp(TS_MW, '2001-01-15T16:12:34Z');
20010115161234

Per spec, if the timezone isn't specified it should be assumed to be local time, but probably just taking it in as UTC will be fine for our purposes.

Do we want to accept other specified timezones though? This would require applying the transformation on input.

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


Navigation
Links