https://bugzilla.wikimedia.org/show_bug.cgi?id=28353

           Summary: some #timel codes incorrectly assume that local time
                    is still UTC
           Product: MediaWiki extensions
           Version: any
          Platform: All
               URL: http://ca.wikipedia.org/w/index.php?oldid=7174012
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: ParserFunctions
        AssignedTo: [email protected]
        ReportedBy: [email protected]


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

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to