From d14833ed9816173f373f73ef86c66c1e42796803 Mon Sep 17 00:00:00 2001 From: Rod Elias Date: Wed, 7 Feb 2018 22:58:27 -0200 Subject: [PATCH] change strftime() so it works on Windows systems --- src/Sinesp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sinesp.php b/src/Sinesp.php index f0137bf..1364da3 100644 --- a/src/Sinesp.php +++ b/src/Sinesp.php @@ -143,7 +143,7 @@ private function xml() EOX; - return sprintf($xml, $this->latitude(), $this->token(), $this->longitude(), strftime('%Y-%m-%d %T'), $this->placa); + return sprintf($xml, $this->latitude(), $this->token(), $this->longitude(), strftime('%Y-%m-%d %H:%M:%S'), $this->placa); } private function validar($placa)