Bug #2283 » 2283.patch
administrator/components/com_comprofiler/plugin.foundation.php | ||
---|---|---|
}
|
||
return null;
|
||
break;
|
||
case 'offset':
|
||
if ( checkJversion() == 2 ) {
|
||
$dateTimeZoneUTC = new DateTimeZone( 'UTC' );
|
||
$dateTimeZoneCurrent = new DateTimeZone( $this->_baseFramework->getCfg( 'offset' ) );
|
||
$dateTimeUTC = new DateTime( 'now', $dateTimeZoneUTC );
|
||
$timeOffset = $dateTimeZoneCurrent->getOffset( $dateTimeUTC );
|
||
|
||
return ( ( ( $timeOffset / 60 ) / 60 ) );
|
||
}
|
||
// NO break; on purpose for fall-through on other CMS:
|
||
default:
|
||
break;
|
||
}
|