Quote:
Originally Posted by Paul M
The time is probably 4 hours out because the code does not take into account the local servers timezone. It needs to be extracted using date('Z', TIMENOW) and applied as a correction.
I would also consider removing this from the code ;
Code:
if (substr($userinfo['tzoffset'], 0, 1) != '-')
{
// recorrect so that it has + sign, if necessary
$userinfo['tzoffset'] = '+' . $userinfo['tzoffset'];
}
It's purely for display purposes and not really required for the calculations in this hack. 
|
I'm not sure I understand what you are getting at. Please PM me with the details if you would, sir.