Last modified: 2011-04-22 13:31:44 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 T30353, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28353 - some #timel codes incorrectly assume that local time is still UTC
some #timel codes incorrectly assume that local time is still UTC
Status: RESOLVED DUPLICATE of bug 7133
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
unspecified
All All
: High normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://ca.wikipedia.org/w/index.php?o...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-31 21:55 UTC by xaviersmp
Modified: 2011-04-22 13:31 UTC (History)
2 users (show)

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


Attachments

Description xaviersmp 2011-03-31 21:55:01 UTC
I could not find any variable to print the timezone of {{LOCALTIME}} so I tried to code one by myself using Parserfunctions and I found that some of the {{#timel}} codes assume that the time is in UTC even when this is not true, and this produces an incorrect output:

{{#timel:c}} should print the ISO 8601 formatted date, but it incorrectly prints a +00:00 timezone creating a false timestamp.

{{#timel:r}} should print the RFC 2822 formatted date, but it always prints a +0000 timezone. http://tools.ietf.org/html/rfc2822 specifies that +0000 precisely means UTC and it also specifies that when the timezone is not sure and may not be UTC the correct output is -0000.

{{#timel:U}} should print the number of seconds since January 1 1970 00:00:00 GMT. This number is incorrect.

You can find my tests in http://ca.wikipedia.org/w/index.php?oldid=7174012
Comment 1 Niklas Laxström 2011-04-22 10:04:43 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