> -----Original Message-----
> From: Jesus M. Castagnetto [mailto:[EMAIL PROTECTED]
> Sent: 11 March 2003 22:38
> To: [EMAIL PROTECTED]
> Subject: [PHP-DOC] cvs: phpdoc /en/reference/datetime/functions

> +    <note>
> +     <para>
> +      In the Microsoft Windows series of Operating Systems 
> the system 
> +      libraries implementing this function are broken, so 
> +      <function>gmdate</function> does not support negative values 
> +      for the <parameter>timestamp</parameter>. 
> +      For details see bug reports:
> +      <ulink 
> url="http://bugs.php.net/bug.php?id=22620";>#22620</ulink>,
> +      <ulink 
> url="http://bugs.php.net/bug.php?id=22620";>#22457</ulink>,
> +      and <ulink 
> url="http://bugs.php.net/bug.php?id=22620";>#14391</ulink>.
> +     </para>
> +     <para>
> +      This problem does not occur in Unix/Linux Operating 
> Systems, were the system 
> +      libraries behave as expected.
> +     </para>
> +     <para>
> +      PHP cannot fix broken system libraries. Contact
> +      your OS vendor for a fix to this a similar problems.
> +     </para>
> +    </note>

Pardon me, but although these additional notes are useful and laudable, they *do not* 
address the substance of #22620, where the report is that

    gmmktime(0, 0, 0, 1, 1, 1970)

does NOT return 0 in non-GMT timezones on Windows.

As far as I can see, none of the responses from @php.net has directly addressed this 
issue yet.  Unfortunately, I don't currently have access to a testing environment on 
Windows, or I'd attempt to verify (or disprove) it myself.  If noone else can do so, I 
may be able to do some testing on Windows NT some time in the next week.

This may still be broken Windows behaviour -- it may even be due to attempting to 
calculate an intermediate local (negative) timestamp in timezones west of GMT -- but 
whatever the case, it probably needs some minor additional clarification on relevant 
pages.

It may help to find out from the OP of #22620 what his timezone is, and whether 
gmmktime(0, 0, 0, 1, 2, 1970) correctly returns 86400.  It may even be good public 
relations to request this anyway, just to show we are not completely ignoring his 
problem -- would anybody object if I did so?

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211

-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to