For Programmers: Free Programming Magazines  


Home > Archive > PHP Questions and Answers > January 2007 > Re: [PHP-DEV] easter_date() II









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DEV] easter_date() II
Pierre

2007-01-22, 6:57 pm

Hi Oliver,

Report a bug using bugs.php.net (with a link to the patch diff -up :)

This way it will not get lost in the internals archive.

On 1/22/07, Oliver Block <lists@block-online.eu> wrote:
> 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
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com