[tz] Fiji change exposed Y2038 bug in localtime.c

Paul Eggert eggert at cs.ucla.edu
Thu Oct 1 09:59:11 UTC 2015

Andreas Schwab wrote:

> s/2018/2038/

Thanks, I'll put the corrected year into NEWS with the attached patch (the NEWS 
item was missing so a fix would be needed anyway).  This documentation patch is 
too late for 2015g, but should appear in the release after that.
-------------- next part --------------
From 788656789f5f01dad5aac1406b1cfaed8d3a83eb Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert at cs.ucla.edu>
Date: Thu, 1 Oct 2015 02:56:33 -0700
Subject: [PATCH] * NEWS: Mention last-minute localtime fix for Fiji.

 NEWS | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/NEWS b/NEWS
index 00d07cb..9a2dfd6 100644
--- a/NEWS
+++ b/NEWS
@@ -26,6 +26,9 @@ Release 2015g - 2015-10-01 00:39:51 -0700
     localtime no longer mishandles America/Anchorage after 2037.
     (Thanks to Bradley White for reporting the bug.)
+    On hosts with signed 32-bit time_t, localtime no longer mishandles
+    Pacific/Fiji after 2038-01-16 14:00 UTC.
     The localtime module allows the variables 'timezone', 'daylight',
     and 'altzone' to be in common storage shared with other modules,
     and declares them in case the system <time.h> does not.

More information about the tz mailing list