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

8.0.x
catch 2013-02-22 12:47:01 +00:00
parent 01d6fee5ec
commit 1364b0322c
1 changed files with 3 additions and 1 deletions

View File

@ -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);';
}