$this->oReg->getUserId();
. 'SET `login_when`='.\time().', '
. 'SET `login_when`='.\time() + $this->oReg->DefaultTimezone.', '
$sql = 'UPDATE `'.TABLE_PREFIX.'users` ' . 'SET `login_when`='.\time().', ' . '`login_ip`=\''.$sRemoteAddress.'\' ' . 'WHERE `user_id`=\''.$user_id.'\'';
Input : Local_time - Timezone = UTCOutput: UTC + Timezone = Local_time