Ticket #600: timezone.2.patch

File timezone.2.patch, 0.5 kB (added by doubleface, 8 months ago)
  • a/jCoordinator.class.php

    old new  
    9393        if($gJConfig->use_error_handler){ 
    9494            set_error_handler('jErrorHandler'); 
    9595            set_exception_handler('JExceptionHandler'); 
     96        } 
     97 
     98        if (!isset($gJConfig->timeZone)) { 
     99            $gJConfig->timeZone = date_default_timezone_get(); 
    96100        } 
    97101        date_default_timezone_set($gJConfig->timeZone); 
    98102        $this->_loadPlugins(); 
Download in other formats: Original Format