twekkel / htpdate

HTTP Time protocol
https://www.vervest.org/htp
Other
50 stars 13 forks source link

htpdate: really ignore timelimit when sanity checks are off #6

Closed angeloc closed 2 years ago

angeloc commented 2 years ago

This fixes the case when a clock is started with no previous time configured and it is therefore in epoch time: this happens for example when a board without an RTC is bring up and needs to sync the time. In this case, the software always refuse to synchronize because of the timelimit limited value, which even if it's big, it's not big enough to contemplate for the epoch time.

Signed-off-by: Angelo Compagnucci angelo.compagnucci@gmail.com

twekkel commented 2 years ago

Not 100% liking it, but I don't have better suggestion.... likely to be changed with future 2038y fixes.

thx