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:
1 parent
9609ae3932
commit
1b84311183
1 file changed
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user