Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
4034 | minor | always | 05-11-10 12:12 | 05-11-10 12:24 | |
|
|||||
Reporter: | nam | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.7 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.7 | ||
|
|||||
Summary: | 0004034: date_format() does not use user-set default time zone | ||||
Description: |
(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. |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|