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

       Web browser: ---
             Bug #: 35172
           Summary: curious date parameter parsing for #time
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: ParserFunctions
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


Possible duplicate: bug 13357 ?

I'm generating a ISO timestamp for the #time parser function in
[[de:template:ME(S)Z2UTC]]. Yesterday I got notified that it doesn't work (any
more?), the input

{{#time:c|2012-3-11T-1:00}} gives 2012-03-11T07:00:00+00:00.

That's OK, negative hours needn't work (even as {{#time:c|2012-3-0}} returns
2012-02-29... "correctly"). However, I wondered where these 7 o'clock come
from. The error is reproducable and does not depend on the current time. Any
suggestions?

I also did some further investigation and tried out some inputs:
* 2012       - 2012-03-12T00:00:00+00:00 (current date)
* 2012-1     - 2012-01-01T00:00:00+00:00 - OK
* 2012-1T
* 2012-1T-10 - 2012-01-01T07:00:00+00:00 - there's the seven again!
* 2012-1T0:0 - 2012-01-01T00:00:00+00:00 - as expected
* 2012-1T0   - <error>, OK
* 2012T      - 2012-03-13T03:12:00+00:00 - huh, we've got 2012-03-12T16:31 UTC
?!
* 2012GMT    - 2012-03-12T20:12:00+00:00 - what's that ?!

tested just now at http://de.wikipedia.org/wiki/Spezial:Vorlagen_expandieren

-- 
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