Skip to content
Snippets Groups Projects
Commit 76a72d0d authored by Dave Reid's avatar Dave Reid
Browse files

Issue #1055582: Fixed strict notice that FeedsDateTime::setTimezone() is not...

Issue #1055582: Fixed strict notice that FeedsDateTime::setTimezone() is not compatible with DateTime::setTimezone().
parent eee8ae7b
No related branches found
No related tags found
No related merge requests found
......@@ -597,7 +597,7 @@ class FeedsDateTime extends DateTime {
* In order to set a timezone for a datetime that doesn't have such
* granularity, merge() it with one that does.
*/
public function setTimezone(DateTimeZone $tz, $force = FALSE) {
public function setTimezone($tz, $force = FALSE) {
// PHP 5.2.6 has a fatal error when setting a date's timezone to itself.
// http://bugs.php.net/bug.php?id=45038
if (version_compare(PHP_VERSION, '5.2.7', '<') && $tz == $this->getTimezone()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment