From 99d3560b2f848d6c4ef998ce56a390c17445eefd Mon Sep 17 00:00:00 2001 From: Abraham Monrroy Cano Date: Fri, 22 Sep 2023 18:08:27 +0900 Subject: [PATCH] hesai_decoder.replace mktime with timegm (#78) Signed-off-by: amc-nu --- .../nebula_decoders_hesai/decoders/hesai_packet.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nebula_decoders/include/nebula_decoders/nebula_decoders_hesai/decoders/hesai_packet.hpp b/nebula_decoders/include/nebula_decoders/nebula_decoders_hesai/decoders/hesai_packet.hpp index d47a21b0c..730888c91 100644 --- a/nebula_decoders/include/nebula_decoders/nebula_decoders_hesai/decoders/hesai_packet.hpp +++ b/nebula_decoders/include/nebula_decoders/nebula_decoders_hesai/decoders/hesai_packet.hpp @@ -56,7 +56,7 @@ struct DateTime tm.tm_hour = hour; tm.tm_min = minute; tm.tm_sec = second; - return std::mktime(&tm); + return timegm(&tm); } };