Can someone please tell me why the following code no longer works in the member.php? This code still works fine in the postbit but not in the member.php. Any help would be very welcomed and appreciated.
Code:
$userinfo['tzoffset'] = $userinfo['timezoneoffset'];
if ($userinfo['dstonoff'])
{
// DST is on, add an hour
$userinfo['tzoffset']++;
}
$gmdate_bugfix = (date('Z', TIMENOW) / 3600 - $userinfo['tzoffset']) * 3600;
$timestamp_adjusted = max(0, TIMENOW - $gmdate_bugfix);
$userinfo['localtime'] = vbdate($vbulletin->options['timeformat'], $timestamp_adjusted, false, true, false);
$userinfo['localdate'] = vbdate($vbulletin->options['dateformat'], $timestamp_adjusted, false, true, false);