Skip to content
Snippets Groups Projects
Commit 1364b032 authored by catch's avatar catch
Browse files

Issue #1892728 by mvc: Fixed PoHeader::__construct() throws warning and breaks localized installs.

parent 01d6fee5
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -77,7 +77,9 @@ class PoHeader {
*/
public function __construct($langcode = NULL) {
$this->_langcode = $langcode;
$this->_po_date = date("Y-m-d H:iO");
// Ignore errors when run during site installation before
// date_default_timezone_set() is called.
$this->_po_date = @date("Y-m-d H:iO");
$this->_pluralForms = 'nplurals=2; plural=(n > 1);';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment