#27719 [Fbk->Csd]: mktime returns incorrect timestamp for dst days
| From: | derick@php.net | Date: | Sat, 08 Oct 2005 11:34:18 +0000 |
| Subject: | #27719 [Fbk->Csd]: mktime returns incorrect timestamp for dst days | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-86239@lists.php.net to get a copy of this message | ||
ID: 27719
Updated by: derick@php.net
Reported By: schmidt dot a at rogers dot com
-Status: Feedback
+Status: Closed
Bug Type: Date/time related
Operating System: FreeBSD 4.4
PHP Version: 4.4.1RC1, 5.0.0RC1
Assigned To: derick
New Comment:
Yes, that is correct.
Previous Comments:
------------------------------------------------------------------------
[2005-10-08 11:16:25] nohn@php.net
With PHP 4.4.1RC1 i get these results when running the test:
echo mktime(0, 0, 0, 4, 4, 2004, 0) . "\n";
echo mktime(0, 0, 0, 4, 4, 2004, 1) . "\n";
echo mktime(0, 0, 0, 4, 4, 2004, -1) . "\n";
1081033200
1081029600
1081029600
Derick, is that expected behaviour?
------------------------------------------------------------------------
[2004-03-30 07:42:52] derick@php.net
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2004-03-26 14:50:12] schmidt dot a at rogers dot com
problem fixed. thanks.
------------------------------------------------------------------------
[2004-03-26 14:25:25] rasmus@php.net
I have committed a fix which uses the 4am offset instead of 2 there
around line 192 in datetime.c. Any chance you could test that and let
me know if it fixes your problem?
------------------------------------------------------------------------
[2004-03-26 14:00:40] rasmus@php.net
I made the changed referenced above to address this bug:
http://bugs.php.net/27533
Perhaps the solution here is to offset it to +3 or +4 instead to get
the baseline timestamp.
------------------------------------------------------------------------
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/27719
--
Edit this bug report at http://bugs.php.net/?id=27719&edit=1