Mantis - Quercus
Viewing Issue Advanced Details
4034 minor always 05-11-10 12:12 05-11-10 12:24
nam  
nam  
normal  
closed 4.0.7  
fixed  
none    
none 4.0.7  
0004034: date_format() does not use user-set default time zone
(rep by sblommers)

http://forum.caucho.com/showthread.php?t=8947 [^]

I would like to report another bug regarding date_timezone. (the others are already fixed). My date time zone is Europe/Amsterdam.

On Apache running PHP5:

<?php
date_default_timezone_set("Europe/Amsterdam"); print date_format(date_create(), 'Y-m-d H:i:s') . "\n"; echo 'Default timezone: ' . date_default_timezone_get() . "\n\n";
?>

results correctly in:
2010-05-10 17:43:20
Default timezone: Europe/Amsterdam

but running 4.0.2, 4.0.3, 4.0.6 and latest SNAPSHOT results faulty in:
2010-05-10 19:43:19
Default timezone: Europe/Amsterdam

I checked into the code and saw that after Parsing the date using the DateParser (in /lib/date/DateModule) this error comes up and not calculating the offset correctly.

Notes
(0004562)
nam   
05-11-10 12:24   
php/1948