[Systems] [agendav] DateTime::createFromFormat() not availble in PHP 5.2 (#15)

Bernie Innocenti bernie at sugarlabs.org
Tue Dec 13 22:09:59 EST 2011


On Tue, 2011-12-13 at 04:25 -0800, Jorge López Pérez wrote:
> @codewiz can you test latest commits under PHP 5.2? I have done some testing under 5.3 forcing the use of strptime and seemed to work.

Now I get this:

 PHP Fatal error:  Call to undefined method DateTime::getLastErrors() in /srv/www-sugarlabs/webcal/web/application/libraries/Dates.php on line 439, referer: https://trac.sugarlabs.org/index.php/calendar

The offending line is:

 $err = DateTime::getLastErrors();

If I comment that part out, I also get this:

 PHP Fatal error:  Call to undefined method DateTime::diff() in /srv/www-sugarlabs/webcal/web/application/libraries/Icshelper.php on line 410, referer: https://trac.sugarlabs.org/index.php/calendar

-- 
Bernie Innocenti
Sugar Labs Infrastructure Team
http://wiki.sugarlabs.org/go/Infrastructure_Team



More information about the Systems mailing list