diff --git a/src/helpers/asn1.php b/src/helpers/asn1.php index 7c4e27c..372a0c7 100644 --- a/src/helpers/asn1.php +++ b/src/helpers/asn1.php @@ -233,7 +233,7 @@ public static function __callStatic($func, $params) { $time = $params[0]; //yymmddhhiiss $oldTz = date_default_timezone_get(); date_default_timezone_set("UTC"); - $time = date("ymdHis", $time); + $time = \DateTime::createFromFormat('ymdHis', $time)->getTimestamp(); date_default_timezone_set($oldTz); $val = bin2hex($time."Z"); }