[PHP-DEV] [Fwd: PHP bug 3248 - wrong timezone info on Win32] From: Hartmut Holzgraefe (hartmut <email protected>)
Date: 11/23/00

  i still have no working windows developement setup,

  so can someone else please have a look at it ?

Urmet Jänes wrote:
>
> Hello!
>
> The abovementioned bug has been bugging me as well for some time. I just
> had a look at the code of PostHeader() and I believe the sign of
> _timezone is interpreted incorrectly.
>
> While MSDN does not discuss the sign of _timezone, the respective
> variable on UNIX (__timezone in time.h) is positive when west of GMT and
> negative when east of Greenwich - exactly the opposite of the timezone
> notation in SMTP headers.
>
> This is supported by the fact that MS default for _timezone is 28800 - 8
> hours. I believe GMT-0800 (Midwestern US?) would make much more sense
> for a default than GMT+0800 (Thailand?).
>
> While I cannot test the theory, I believe when the sign gets reversed in
> the code, everybody would be happy.
>
> Best regards,
>
> Urmet Jänes
> AS Proekspert

-- 
Hartmut Holzgraefe  hartmut <email protected>  http://www.six.de  +49-711-99091-77

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>