From: Miroslav Lichvar Date: Fri, 24 Apr 2015 10:13:24 +0000 (+0200) Subject: reference: use 2012 leap second in leapsectz test X-Git-Tag: 2.0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cec4f2b140404be0ebd9e6b11d0a3051b4bd4b64;p=thirdparty%2Fchrony.git reference: use 2012 leap second in leapsectz test --- diff --git a/reference.c b/reference.c index 63573645..fc6b4ff0 100644 --- a/reference.c +++ b/reference.c @@ -248,9 +248,9 @@ REF_Initialise(void) leap_tzname = CNF_GetLeapSecTimezone(); if (leap_tzname) { - /* Check that the timezone has good data for Jun 30 2008 and Dec 31 2008 */ - if (get_tz_leap(1214784000) == LEAP_Normal && - get_tz_leap(1230681600) == LEAP_InsertSecond) { + /* Check that the timezone has good data for Jun 30 2012 and Dec 31 2012 */ + if (get_tz_leap(1341014400) == LEAP_InsertSecond && + get_tz_leap(1356912000) == LEAP_Normal) { LOG(LOGS_INFO, LOGF_Reference, "Using %s timezone to obtain leap second data", leap_tzname); } else { LOG(LOGS_WARN, LOGF_Reference, "Timezone %s failed leap second check, ignoring", leap_tzname);