Ticket #3454 (new defect)

Opened 2 years ago

Last modified 2 years ago

date() problem (Windows only)

Reported by: weyrick Assigned to: anonymous
Priority: normal Milestone: 3.0.0 release
Component: Standard Library Version: trunk
Severity: minor Keywords:
Cc:

Description (Last modified by weyrick)

<?php

$mo = '01'; $da = '09'; $yr = '2007'; // 01/09/2007
$hh = '13'; $mm = '15'; $ss = '45'; // 13:15:45
$tme = mktime($hh,$mm,$ss,$mo,$da,$yr);
print 'Time: '.date("Y-m-d (D) H:i:s A",$tme); 

?>

works correctly in linux

Change History

01/10/07 11:26:30 changed by weyrick

The following routine will tell you if the hour function in the Date() function has been fixed.

function IsDateFixed(){
$v1 = date('G');
$v2 = date('G',mktime(date('G')));
if(abs($v1-$v2) > 1)return FALSE;
Return TRUE;
}

01/12/07 08:58:20 changed by weyrick

  • description changed.

04/15/07 11:40:14 changed by weyrick

  • milestone set to 3.0.0 release.