Skip to content

Commit

Permalink
Improve comment
Browse files Browse the repository at this point in the history
Co-authored-by: Mattia Pennasilico <[email protected]>
  • Loading branch information
kytpbs and pennam committed Sep 16, 2024
1 parent fac98d7 commit 8d42032
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/utility/time/TimeService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,10 @@ unsigned long TimeServiceClass::getRemoteTime()

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

bool TimeServiceClass::isTimeZoneOffsetValid(long const offset)
Expand Down

0 comments on commit 8d42032

Please sign in to comment.