On Sun, 20 Nov 2011, Stas Malyshev wrote:

> If it is the former, the patch seems to be pretty simple:
> 
> --- lib/unixtime2tm.c (revision 319533)
> +++ lib/unixtime2tm.c (working copy)
> @@ -146,7 +146,7 @@
>                       int z = tm->z;
>                       signed int dst = tm->dst;
>                       
> -                     timelib_unixtime2gmt(tm, tm->sse - (tm->z * 60));
> +                     timelib_unixtime2gmt(tm, tm->sse - (tm->z * 60) +
> tm->dst*3600);
> 
>                       tm->z = z;
>                       tm->dst = dst;
> @@ -184,7 +184,7 @@
>                       int z = tm->z;
>                       signed int dst = tm->dst;
>                       
> -                     timelib_unixtime2gmt(tm, ts - (tm->z * 60));
> +                     timelib_unixtime2gmt(tm, (ts - (tm->z * 60) +
> tm->dst*3600));
> 
>                       tm->z = z;
>                       tm->dst = dst;

That is incorrect, not every timezone DST change is 60 minutes.

cheers,
Derick

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to