don't try and handle case: timestamp + offset > 0

This commit is contained in:
Jacob Dahl 2025-04-16 01:29:04 -08:00
parent c180da63b1
commit 08c83536de

View File

@ -1315,10 +1315,7 @@ int Logger::get_log_file_name(LogType type, char *file_name, size_t file_name_si
// Check if time is non-zero for valid UTC timestamp
if (timestamp_utc > 0) {
int offset = _param_sdlog_utc_offset.get() * 60;
if (timestamp_utc > abs(offset)) {
timestamp_utc += offset;
}
timestamp_utc += _param_sdlog_utc_offset.get() * 60;
tm tt = {};
gmtime_r(&timestamp_utc, &tt);