summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-03-08 20:22:03 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-03-08 20:22:03 +0000
commit153bcd9bd3b337120e1afc75ce63cb5b80730913 (patch)
tree6974ee359fc3b40bb6257aeba350140b285071e6 /tools
parentc14410b47a2719e8b1d74b438dc868d6eb973da4 (diff)
downloadskalibs-153bcd9bd3b337120e1afc75ce63cb5b80730913.tar.xz
bugfix: leap second table. Also add leapsec reporting in localtm.
Diffstat (limited to 'tools')
-rw-r--r--tools/convert-leapsecs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/convert-leapsecs.c b/tools/convert-leapsecs.c
index 27f8507..78e0f73 100644
--- a/tools/convert-leapsecs.c
+++ b/tools/convert-leapsecs.c
@@ -41,7 +41,7 @@ int main (int argc, char const *const *argv)
tm.tm_hour = 23 ;
t = mktime(&tm) ;
if (t < 0) strerr_diefu1sys(111, "mktime") ;
- tt = t + 10 ;
+ tt = t + 1 ;
add_leapsecs(&tt) ;
if (!genalloc_append(uint64_t, &table, &tt))
strerr_diefu1sys(111, "genalloc_append") ;