# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- administrator/components/com_comprofiler/plugin.foundation.php +++ administrator/components/com_comprofiler/plugin.foundation.php @@ -2221,6 +2221,16 @@ } 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; }