Mantis - Quercus
Viewing Issue Advanced Details
3177 minor always 12-15-08 03:30 01-18-09 10:29
dmaa  
ferg  
normal  
closed 3.2.1  
fixed  
none    
none 4.0.0  
0003177: strtotime bug
Sample code:
 $time = strtotime('15 December 2008');
 echo date('r', $time);

Quercus output:
  Mon, 15 Dec 2008 14:26:44 +0300
  (shows current local hours:minutes:seconds, which is wrong!)

PHP 5.2.x output:
  Mon, 15 Dec 2008 00:00:00 +0300
  (everything is fine, shows 00:00:00 as expected)


Notes
(0003630)
dmaa   
12-15-08 03:40   
Addon: if I enable non-local timezone modifier, I still get local timezone from strtotime :(

$res = date_default_timezone_set('America/New_York');
var_dump($res); // returns true in Quercus and php 5.2.5 !
$time = strtotime('15 December 2008');
echo date('r', $time);

Outputs 'bla-bla.. +0300' in Quercus, and 'bla-bla...-0500' in php 5.2.x
(0003760)
ferg   
01-18-09 10:29   
php/191r