View Full Version : DateTime incorrectly using TimeZone

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:

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,

05-11-2010, 07:25 PM
Thanks Sebastiaan,

I've just fixed this for 4.0.7. The issue was that we were always using the Java default time zone, instead of the user-specified default.


05-12-2010, 08:47 AM
Superb! I'll check into it later today and see if it works ok. Thanks for solving this on such short notice.

Best regards,

05-19-2010, 09:52 AM
My reaction is a bit late but this is working wonderfully now!!

Thank you for fixing this!!


05-22-2010, 02:35 PM
You can never forget balenciaga (http://www.replicabalenciaga.com) beauty that the brings to you. moncler (http://www.mymonclerjackets.com) in the love of ladies, The class ed hardy (http://www.edhardy2me.com) series of gucci shoes (http://www.myguccishoes) this chance to pandora bracelets (http://www.braceletspandora.com) chooes.

05-26-2010, 08:39 AM
YSL Shoes (http://www.unshoessales.com/yves-saint-laurent-c-47.html) really give total freedom to your toes.Sounds so surprising!Fashion couldn’t go without Christian Louboutin Shoes (http://www.unshoessales.com/) and Vibram Five Fingers (http://www.shoeseasybuy.com/),which highly promote women's chic personality and sexy,elegant glamor.If we say ED Hardy Shoes (http://www.unshoessales.com/ed-hardy-shoes-c-37.html) gives the whole romantic fantacy to girls zumba dvd (http://www.undvdsale.com/zumba-fitness-dvd-boxset-p-368.html).