mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-04 02:28:06 +01:00
Merge branch '2.0'
This commit is contained in:
commit
f257fceabb
@ -1062,7 +1062,7 @@ class X509
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($date)) {
|
if (!isset($date)) {
|
||||||
$date = new DateTime($date, new DateTimeZone(date_default_timezone_get()));
|
$date = new DateTime($date, new DateTimeZone(@date_default_timezone_get()));
|
||||||
}
|
}
|
||||||
|
|
||||||
$notBefore = $this->currentCert['tbsCertificate']['validity']['notBefore'];
|
$notBefore = $this->currentCert['tbsCertificate']['validity']['notBefore'];
|
||||||
@ -2792,7 +2792,7 @@ class X509
|
|||||||
$date = new DateTime($date);
|
$date = new DateTime($date);
|
||||||
}
|
}
|
||||||
|
|
||||||
$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()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2819,7 +2819,7 @@ class X509
|
|||||||
$date = new DateTime($date);
|
$date = new DateTime($date);
|
||||||
}
|
}
|
||||||
|
|
||||||
$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…
Reference in New Issue
Block a user