From 506f5bc02fb42c2fd48c1abeef5b9aecb4b95f06 Mon Sep 17 00:00:00 2001 From: amc-nu Date: Wed, 20 Sep 2023 08:58:40 +0900 Subject: [PATCH] hesai_decoder.replace mktime with timegm 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); } };