fix(mqtt): remove unused time conversion calls in syncTimeWithNTP

Eliminate unnecessary calls to gmtime and localtime in the
syncTimeWithNTP function. This cleanup improves code clarity
and reduces potential confusion regarding time handling.
This commit is contained in:
agessaman committed 2026-07-20 15:20:58 -07:00
1 parent 9609ae3932
commit 1b84311183
1 file changed
-2
-2
View File
@@ -3609,8 +3609,6 @@ bool MQTTBridge::syncTimeWithNTP(bool force, bool primary_only) {
last_timezone[sizeof(last_timezone) - 1] = '\0';
}
(void)gmtime((time_t*)&epochTime);
(void)localtime((time_t*)&epochTime);
return true;
}