Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003177 [Quercus] minor always 12-15-08 03:30 01-18-09 10:29
Reporter dmaa View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.2.1
Summary 0003177: strtotime bug
Description 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)

Additional Information
Attached Files

- Relationships

- 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
 

- Issue History
Date Modified Username Field Change
12-15-08 03:30 dmaa New Issue
12-15-08 03:40 dmaa Note Added: 0003630
01-18-09 10:29 ferg Note Added: 0003760
01-18-09 10:29 ferg Assigned To  => ferg
01-18-09 10:29 ferg Status new => closed
01-18-09 10:29 ferg Resolution open => fixed
01-18-09 10:29 ferg Fixed in Version  => 4.0.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker