[Fwd: PHP bug 3248 - wrong timezone info on Win32]
| From: | Hartmut Holzgraefe | Date: | Thu, 23 Nov 2000 17:18:59 +0000 |
| Subject: | [Fwd: PHP bug 3248 - wrong timezone info on Win32] | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39020@lists.php.net to get a copy of this message | ||
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@six.de http://www.six.de
+49-711-99091-77