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