mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 11:37:33 +00:00
date format fix
This commit is contained in:
parent
4f399d5c33
commit
508f04fab8
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user