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

       Web browser: ---
             Bug #: 32351
           Summary: #time and #timel ignore explicitly specified timezone
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: ParserFunctions
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


Created attachment 9416
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=9416
One line patch.

Both #time and #timel ignore explicitly specified timezone. For example:

* {{ #time:  Y-m-d H:i:s | 2011-11-10T23:00 Europe/London  }}
* {{ #time:  Y-m-d H:i:s | 2011-11-10T23:00 Europe/Rome    }}
* {{ #timel: Y-m-d H:i:s | 2011-11-10T23:00 Europe/London  }}
* {{ #timel: Y-m-d H:i:s | 2011-11-10T23:00 Europe/Rome    }}

produces 

* 2011-11-10 23:00:00
* 2011-11-10 23:00:00
* 2011-11-10 23:00:00
* 2011-11-10 23:00:00 

With proposed one-line (not counting comments) patch, both function start to
respect explicitly specified timezone. #time converts specified time to UTC,
#timel -- to local server time:

* 2011-11-10 23:00:00 // London time == UTC
* 2011-11-10 22:00:00 // 23:00 Paris time == 22:00 UTC
* 2011-11-11 03:00:00 // 23:00 London time == 03:00 next day my local time
* 2011-11-11 02:00:00 // 23:00 Paris time == 02:00 next day my local time

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