From 153bcd9bd3b337120e1afc75ce63cb5b80730913 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 8 Mar 2019 20:22:03 +0000 Subject: bugfix: leap second table. Also add leapsec reporting in localtm. --- src/libstddjb/localtm_from_sysclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstddjb/localtm_from_sysclock.c') diff --git a/src/libstddjb/localtm_from_sysclock.c b/src/libstddjb/localtm_from_sysclock.c index d63a6d8..02a9f67 100644 --- a/src/libstddjb/localtm_from_sysclock.c +++ b/src/libstddjb/localtm_from_sysclock.c @@ -7,5 +7,5 @@ int localtm_from_sysclock (struct tm *l, uint64_t u, int tz) { if (!ltm64_from_sysclock(&u)) return 0 ; - return localtm_from_ltm64(l, u, tz) ; + return localtm_from_ltm64(l, u, !!tz) ; } -- cgit v1.2.3