1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-06 05:58:53 +01:00

Revert "date format fix"

This reverts commit 508f04fab8.
This commit is contained in:
terrafrost 2017-09-30 22:50:24 +01:00
parent 4f2ece4d7d
commit 1f7d1bc18a

View File

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