easter_date() II

From: Date: Mon, 22 Jan 2007 19:29:39 +0000
Subject: easter_date() II
Groups: php.internals php.qa 
Request: Send a blank email to internals+get-27588@lists.php.net to get a copy of this message
Hello, easter_date() returns a timestamp produced by C's mktime(). (ext/calendar/easter.c:111): Z_LVAL_P(return_value) = mktime(&te); AFAIK mktime() (time.h) is different to php's mktime() as it does not consider php's timezones, i,e, C's mktime does always return a timestamp of the local timezone. At least I conclude that from own tests. PHP's date functions on the other hand interpret the timestamp with respect to the php (default?) timezone. This leads to the wrong test results of easter_date.phpt as described in my posting from 22. Jan. Regards, Oliver

« previous php.internals (#27588) next »