SimpleSAML_Utilities::initTimezone PHP Method

initTimezone() public static method

Deprecation: This method will be removed in SSP 2.0. Please use SimpleSAML\Utils\Time::initTimezone() instead.
public static initTimezone ( )
    public static function initTimezone()
    {
        \SimpleSAML\Utils\Time::initTimezone();
    }

Usage Example

Ejemplo n.º 1
0
 function __construct()
 {
     $config = SimpleSAML_Configuration::getInstance();
     assert($config instanceof SimpleSAML_Configuration);
     /* Get the metadata handler option from the configuration. */
     $this->logFile = $config->getPathValue('loggingdir', 'log/') . $config->getString('logging.logfile', 'simplesamlphp.log');
     $this->processname = $config->getString('logging.processname', 'simpleSAMLphp');
     if (@file_exists($this->logFile)) {
         if (!@is_writeable($this->logFile)) {
             throw new Exception("Could not write to logfile: " . $this->logFile);
         }
     } else {
         if (!@touch($this->logFile)) {
             throw new Exception("Could not create logfile: " . $this->logFile . " Loggingdir is not writeable for the webserver user.");
         }
     }
     SimpleSAML_Utilities::initTimezone();
 }
All Usage Examples Of SimpleSAML_Utilities::initTimezone