date format fix

This commit is contained in:
Sokolovskyy Roman 2017-09-11 13:33:43 +02:00
parent 4f399d5c33
commit 508f04fab8

View File

@ -2793,7 +2793,8 @@ class X509
$date = new DateTime($date);
}
$this->startDate = $date->format('D, d M Y H:i:s O', new DateTimeZone(@date_default_timezone_get()));
$date->setTimezone(new DateTimeZone(@date_default_timezone_get()));
$this->startDate = $date->format('D, d M Y H:i:s O');
}
/**
@ -2820,7 +2821,8 @@ class X509
$date = new DateTime($date);
}
$this->endDate = $date->format('D, d M Y H:i:s O', new DateTimeZone(@date_default_timezone_get()));
$date->setTimezone(new DateTimeZone(@date_default_timezone_get()));
$this->endDate = $date->format('D, d M Y H:i:s O');
}
}