Skip to content

Commit 14eff91

Browse files
kytpbspennam
andauthored
Improve comment
Co-authored-by: Mattia Pennasilico <[email protected]>
1 parent d1fc512 commit 14eff91

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
@@ -320,9 +320,10 @@ unsigned long TimeServiceClass::getRemoteTime()
320320

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

328329
bool TimeServiceClass::isTimeZoneOffsetValid(long const offset)

0 commit comments

Comments
 (0)