Skip to content

Commit 8d42032

Browse files
kytpbspennam
andcommitted
Improve comment
Co-authored-by: Mattia Pennasilico <[email protected]>
1 parent fac98d7 commit 8d42032

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/utility/time/TimeService.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,10 @@ unsigned long TimeServiceClass::getRemoteTime()
322322

323323
bool TimeServiceClass::isTimeValid(unsigned long const time)
324324
{
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)));
325+
/* EPOCH_AT_COMPILE_TIME is in local time, so we need to subtract the maximum
326+
* possible timezone offset UTC+14 to make sure we are less then UTC time
327+
*/
328+
return (time > (EPOCH_AT_COMPILE_TIME - (14 * 60 * 60)));
328329
}
329330

330331
bool TimeServiceClass::isTimeZoneOffsetValid(long const offset)

0 commit comments

Comments
 (0)