/** * Constructor */ public function __construct() { if (extension_loaded('intl')) { parent::__construct(); return; } $this->dateType = Pi::config('date_format'); //'Y-m-d'; $this->pattern = ''; }
/** * @throws Exception\ExtensionNotLoadedException if ext/intl is not present */ public function __construct() { parent::__construct(); // Delaying initialization until we know ext/intl is available $this->timeType = IntlDateFormatter::LONG; }