ID: 14391
Comment by: nospam at no-spam dot com
Reported By: pilots at farlep dot net
Status: No Feedback
Bug Type: Date/time related
Operating System: Windows 2000 Server
PHP Version: 4.0.6
New Comment:
The gmmktime() & windows problem still persists on 4.3.0.
We now go into the third year of this bug being around. Could this
become a record???
Testcase:
gmmktime(0,0,0,1,1,1970);
MUST return 0, also on a win box that is not in GMT-Zone.
Or then, PLEASE introduce URGENTLY a new function that allows the
manual correction of the TZ, e.g.:
int gmmktime ( int hour, int minute, int second, int month, int day,
int year [, int is_dst] [, int tz_offset])
because it boils down to the fact that the TZ-offset is the thing that
is not detected correctly.
Previous Comments:
------------------------------------------------------------------------
[2003-01-12 05:41:11] frodo at interport dot net
this bug has been around for over 2 years and it's a big one!!!
for time based apps lets face it, the gmmktime function is extremely
important.
any idea when this will be fixed?
------------------------------------------------------------------------
[2003-01-08 02:13:31] napetune at hotmail dot com
I use Win2K.I got this problem too. But after I updated to php 4.2.1
version, they are gone. It works well on php 4.2.1 (or higher version,
I guess).
Kae
------------------------------------------------------------------------
[2002-12-12 09:03:48] moonset at hotmail dot com
Same problem - runing at the same time 2 systems:
On Windows NT 5.0 build 2195 PHP 4.1.1 on GMT zone:
echo (gmdate("U") . "<br>"); //1039704601
echo (date ("U") . "<br>"); //1039704601
echo (mktime() . "<br>"); //1039704601
echo (gmmktime() . "<br>"); //1039701001
echo (time() . "<br>"); //1039704601
On Linux webdev 2.4.19 #1 PHP 4.2.2 on EDT zone:
echo (gmdate("U") . "<br>"); //1039704601
echo (date ("U") . "<br>"); //1039704601
echo (mktime() . "<br>"); //1039704601
echo (gmmktime() . "<br>"); //1039686601
echo (time() . "<br>"); //1039704601
Peter
------------------------------------------------------------------------
[2002-08-04 01:00:10] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2002-07-03 19:54:16] [EMAIL PROTECTED]
Could you please retry with a current snapshot or CVS-checkout? There
have been changes to mktime, so this problem might be already fixed in
CVS.
Please reopen the case if the problem persists.
Thanks for helping!
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/14391
--
Edit this bug report at http://bugs.php.net/?id=14391&edit=1