HomeFreeBSD

tzcode: Fix early tz change detection

Description

tzcode: Fix early tz change detection

Assume tzdata is not fresh if last_checked is zero, as comparing the
current time to last_checked less than __tz_change_interval after boot
may produce a false negative.

While here, invert the return value from tzdata_is_fresh() to better
match its new name (it was previously called recheck_tzdata(), so zero
for fresh and non-zero for stale made sense, but it doesn't now).

PR: 269207
MFC after: 3 days
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D53502

Details

Provenance
desAuthored on Sun, Nov 2, 1:51 PM
Reviewer
imp
Differential Revision
D53502: tzcode: Fix early tz change detection
Parents
rG92a533ed1d3c: id: Fix WITHOUT_AUDIT build
Branches
Unknown
Tags
Unknown