Ask a Question related to PHP Development, Design and Development.
-
drow at gmx dot at #1
#25789 [NEW]: 30th, march 2003 seems to have only 23 hours
From: drow at gmx dot at
Operating system: Windows XP
PHP version: 4.3.3
PHP Bug Type: Date/time related
Bug description: 30th, march 2003 seems to have only 23 hours
Description:
------------
30th, march has only 23 hours. 2 o'clock is missing :)
using:
- php 4.3.3 with default config
- Windows XP with SP1 and all important updates found on
windowsupdate.microsoft.com
Reproduce code:
---------------
// time is 30th, march 2003
$time = mktime( 0,0,0, 3, 30, 2003 );
echo date( 'm/d/Y (H:i:s)', $time );
echo "<br>\n";
// show gap
for( $i = 0; $i < 2; $i++ ) {
$time += 60*60;
echo date( 'm/d/Y (H:i:s)', $time );
echo "<br>\n";
}
echo "<hr>\n";
// reset to 30th, March 2003 (01:59:59)
$time = mktime( 1,59,59, 3, 30, 2003 );
echo date( 'm/d/Y (H:i:s)', $time );
echo "<br>\n";
// show gap
$time++;
echo date( 'm/d/Y (H:i:s)', $time );
echo "<br>\n";
Expected result:
----------------
03/30/2003 (00:00:00)<br>
03/30/2003 (01:00:00)<br>
03/30/2003 (02:00:00)<br>
<hr>
03/30/2003 (01:59:59)<br>
03/30/2003 (02:00:00)<br>
Actual result:
--------------
03/30/2003 (00:00:00)<br>
03/30/2003 (01:00:00)<br>
03/30/2003 (03:00:00)<br>
<hr>
03/30/2003 (01:59:59)<br>
03/30/2003 (03:00:00)<br>
--
Edit bug report at [url]http://bugs.php.net/?id=25789&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=25789&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=25789&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=25789&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=25789&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=25789&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=25789&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=25789&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=25789&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=25789&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=25789&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=25789&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=25789&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=25789&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=25789&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=25789&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=25789&r=float[/url]
drow at gmx dot at Guest
-
Meet us at the 2nd Annual March Mingle
(Posted on the Dreamweaver, Dreamweaver.AppDev, and ColdFusion.cfml_general_discussion newsgroups) Dan Short and I (Angela Buraglia) will be at... -
#25789 [Bgs]: 30th, march 2003 seems to have only 23 hours
ID: 25789 User updated by: drow at gmx dot at Reported By: drow at gmx dot at Status: Bogus Bug Type: ... -
#25789 [Opn->Bgs]: 30th, march 2003 seems to have only 23 hours
ID: 25789 Updated by: sniper@php.net Reported By: drow at gmx dot at -Status: Open +Status: Bogus... -
September 30th - Photoshop 8 Look
FYI. Sorry if this is widely known or others have posted this, but I found it interesting given the discussion of the Photoshop 8 release. ...



Reply With Quote

