After upgrading from k5n's php webcalendar v1.2.0 to v1.2.3, the time values are incorrect. They're off by a static offset.
When checking my user's webcalender config under "settings > preferences", it always writes:
Regardless of what timezone I select.Your current GMT offset is -5 hours.
[SOLUTION]
This seems to be related to a bug in v1.2.3. Thanks to an entry in the sourceforge forums, I was pointed into the direction of the error:
Workaround:
In 'webcalendar/includes/functions.php' on line 3815, there's the following code:
Code: Select all
date_default_timezone_set ( $GLOBALS['TIMEZONE'] );
Fix?
A few lines above, there's the culprit:
Code: Select all
// Set SERVER TIMEZONE.
if ( empty ( $GLOBALS['TIMEZONE'] ) )
$GLOBALS['TIMEZONE'] = $GLOBALS['SERVER_TIMEZONE'];
...the question is: Where does that one come from?America/New_York