note 93625 deleted from datetime.getoffset by danbrown
| From: | danbrown@php.net | Date: | Fri, 18 Sep 2009 19:54:09 +0000 |
| Subject: | note 93625 deleted from datetime.getoffset by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-160847@lists.php.net to get a copy of this message | ||
Note Submitter: dhoenderdos at gmail dot com
----
I reckon the offset starts at GMT and since Amsterdam is CET (GMT + 1) the wintertime gives uou GMT
+ 2, or the equivalent of 7200 seconds.
I haven't checked since I never use this function, but maybe you can fix this by setting
DateTime::setTimezone to CET or setting all of you datetime stuff to CET using
date_default_timezone_set('Europe/Amsterdam');