this code was written by clowns? No it was AI

This commit is contained in:
2026-01-05 15:39:59 +01:00
parent 314aa0a6b5
commit bfe5a41ea3
14 changed files with 153 additions and 441 deletions

View File

@@ -335,10 +335,7 @@ String getCurrentDateTime(bool inUTC) {
currentEpoch += 3600; // Add 1-hour DST offset
}
}
} else {
// Calculate UTC offset in hours when inUTC is true
utcOffsetHours = (NTPupdated ? NTPoffset : radio.rds.offset / 3600);
}
} else utcOffsetHours = (NTPupdated ? NTPoffset : radio.rds.offset / 3600);
// Convert adjusted (or original) time back to struct tm format
localtime_r(&currentEpoch, &timeInfo);