Anyone having problems with the time being off an hour after the DST change needs to make the following update to this hack.
Thnak goes out to NTLDR for coming up with the correct fix.
functions_showthread.php
usernote.php
member.php
find:
PHP Code:
$post['tzoffset'] = $post['timezoneoffset'];
if ($post['dstonoff'])
{
// DST is on, add an hour
$post['tzoffset']++;
}
REPLACE it with:
PHP Code:
$post['tzoffset'] = $post['timezoneoffset'];
if (!$post['dstonoff']) {
$post['tzoffset']--;
}
In private.php find:
PHP Code:
$pm['tzoffset'] = $pm['timezoneoffset'];
if ($pm['dstonoff'])
{
// DST is on, add an hour
$pm['tzoffset']++;
}
REPLACE it with:
PHP Code:
$pm['tzoffset'] = $pm['timezoneoffset'];
if (!$pm['dstonoff']) {
$pm['tzoffset']--;
}