sblommers
05-10-2010, 03:47 PM
Hi Caucho,
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:
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.
I hope that this problem will be fixed soon.
Best regards,
Sebastiaan
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:
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.
I hope that this problem will be fixed soon.
Best regards,
Sebastiaan