Well, checked it on another test server and the solution in the previous post is 95% working
This should do the job:
[code:1]function uddetime($timezone = 0) {
$JDate = JFactory::getDate();
$JUser =& JFactory::getUser();
$tz = $JUser->getParam('timezone');
$JDate->setOffset($tz);
$date2 = $JDate->toUnix()+(3600*$tz); // toUnix does not include timezone, so add it here
$rightnow=$date2+($timezone*3600);
return $rightnow;
}[/code:1]
Note:
It is still possible to adjust the timezone in uddeIM globally which is useful when the server admin as not configured the correct timezone or the server clock is not set correctly. When the server time is set correctly, the tomezone correctin factor in uddeIM backend (date/time tab) should be "0"!
Note 2:
This hack is not supported. In uddeIM 2.2 I will find a better solution.