Skip to content

Commit

Permalink
hesai_decoder.replace mktime with timegm
Browse files Browse the repository at this point in the history
Signed-off-by: amc-nu <[email protected]>
  • Loading branch information
amc-nu committed Sep 19, 2023
1 parent ea482a8 commit 506f5bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};

Expand Down

0 comments on commit 506f5bc

Please sign in to comment.