Project

General

Profile

Bug #2283 » 2283.patch

krileon, 04 February 2011 22:07

View differences:

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;
}
(1-1/6)