public static function getOffSet($numberOnly = false) { if (EasyBlogHelper::getJoomlaVersion() >= '1.6') { //return a timezone object return EasyBlogDateHelper::getOffSet16($numberOnly); } $mainframe = JFactory::getApplication(); $user = JFactory::getUser(); $config = EasyBlogHelper::getConfig(); $userTZ = ''; $dstOffset = $config->get('main_dstoffset', 0); if ($user->id != 0) { $userTZ = $user->getParam('timezone') + $dstOffset; } //if user did not set timezone, we use joomla one. if (empty($userTZ)) { $userTZ = $mainframe->getCfg('offset') + $dstOffset; } return $userTZ; }