We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1fc512 commit 14eff91Copy full SHA for 14eff91
src/utility/time/TimeService.cpp
@@ -320,9 +320,10 @@ unsigned long TimeServiceClass::getRemoteTime()
320
321
bool TimeServiceClass::isTimeValid(unsigned long const time)
322
{
323
- // EPOCH_AT_COMPILE_TIME is in local time,
324
- // so we need to subtract the maximum possible timezone offset to make sure we are less then utc time
325
- return (time > (EPOCH_AT_COMPILE_TIME - (/*UTC+14*/ 14 * 60 * 60)));
+ /* EPOCH_AT_COMPILE_TIME is in local time, so we need to subtract the maximum
+ * possible timezone offset UTC+14 to make sure we are less then UTC time
+ */
326
+ return (time > (EPOCH_AT_COMPILE_TIME - (14 * 60 * 60)));
327
}
328
329
bool TimeServiceClass::isTimeZoneOffsetValid(long const offset)
0 commit comments