sureswiftcapital / WP-Google-Calendar-Events

Legacy version/fork of the Google Calendar Events 2.4 WordPress plugin. Intended for backwards compatibility only.
https://wordpress.org/plugins/legacy-google-calendar-events/
29 stars 18 forks source link

Add a PHP 5.2.x fallback for DateTime::setTimestamp() #50

Closed unfulvio closed 9 years ago

unfulvio commented 9 years ago

2.x will continue support to PHP 5.2 but in 2.3.0 DateTime::setTimestamp() method is called accidentally - although 5.2 supports DateTime, this method is 5.3 only.

Introduce a fallback for 5.2 users.

unfulvio commented 9 years ago

an example of fallback found on php.net http://php.net/manual/en/datetime.settimestamp.php