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

--- Comment #17 from Harihar Shankar <[email protected]> 2012-05-08 
16:01:56 UTC ---
We have updated the plugin code to incorporate all but one change that had been
suggested. We need your opinion on how to fix the timezone issue that the
plugin introduces. We have found 3 ways to fix this issue and we would
appreciate input on which is the best approach.

1) Use the DateTimeZone class
http://www.php.net/manual/en/class.datetimezone.php to use the GMT timezone for
every time function used by the plugin. The drawback with this approach is that
this class is available in PHP version > 5.2.0. Even though this would work in
Mediawiki servers, a lot of other wikis use older PHP versions. 

2) Save the default timezone set for a wiki by using the getTimezone()
function, use setTimezone('GMT') when the plugin is invoked, and then set it
back to the default timezone when the plugin is finished. This approach will
work with all the versions of PHP.

3) The plugin can check if the datetimezone class is available and use it.
Otherwise use method 2 above. 

Please advice us on what the best approach will be. 

Note: The new plugin code is not available for download yet.

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