You've already forked TEF6686_ESP32
this code was written by clowns? No it was AI
This commit is contained in:
@@ -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(¤tEpoch, &timeInfo);
|
||||
|
||||
Reference in New Issue
Block a user