# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: Joomla root # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. --- components/com_comprofiler/plugin/user/plug_cbmamboauthortab/cb.authortab.php +++ components/com_comprofiler/plugin/user/plug_cbmamboauthortab/cb.authortab.php @@ -29,7 +29,17 @@ $return = ''; - $now = date( 'Y-m-d H:i:s', $_CB_framework->now() + $_CB_framework->getCfg( 'offset' ) * 60 * 60 ); \ No newline at end of file + if ( $jVer >= 2 ) { + $curtz = date_default_timezone_get(); + + date_default_timezone_set( 'UTC' ); + + $now = date( 'Y-m-d H:i:s' ); + + date_default_timezone_set( $curtz ); + } else { + $now = date( 'Y-m-d H:i:s', $_CB_framework->now() + $_CB_framework->getCfg( 'offset' ) * 60 * 60 ); + } \ No newline at end of file $query = "SELECT a.id, a.catid, a.title, a.hits,a.created, ROUND( r.rating_sum / r.rating_count ) AS rating,r.rating_count"; if ( $jVer >= 1 ) { $query .= ', CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(\':\', a.id, a.alias) ELSE a.id END as slug,'