mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-28 09:38:33 +00:00
Revert "date format fix"
This reverts commit 508f04fab85fbd5449c41dcd7e2e85bd2c5f6f6d.
This commit is contained in:
parent
4f2ece4d7d
commit
1f7d1bc18a
@ -2793,8 +2793,7 @@ class X509
|
||||
$date = new DateTime($date);
|
||||
}
|
||||
|
||||
$date->setTimezone(new DateTimeZone(@date_default_timezone_get()));
|
||||
$this->startDate = $date->format('D, d M Y H:i:s O');
|
||||
$this->startDate = $date->format('D, d M Y H:i:s O', new DateTimeZone(@date_default_timezone_get()));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2821,8 +2820,7 @@ class X509
|
||||
$date = new DateTime($date);
|
||||
}
|
||||
|
||||
$date->setTimezone(new DateTimeZone(@date_default_timezone_get()));
|
||||
$this->endDate = $date->format('D, d M Y H:i:s O');
|
||||
$this->endDate = $date->format('D, d M Y H:i:s O', new DateTimeZone(@date_default_timezone_get()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user