Dec. 20, 2017
10:47 p.m.
On 12/20/2017 12:21 PM, Random832 wrote:
I noticed that the current version of glibc shipping in Ubuntu fails in 2038 - for all later dates it uses the offset of the last transition as of December 31, 2038 (which is not the 32-bit limit - is that the point that zic stops putting explicit transitions in the 64-bit data by default?)
No, it appears to be a bug in glibc's implementation of localtime and related functions. The zic-generated files are fine, but 64-bit glibc mishandles timestamps starting in the year 2039 (it handles the year 2038 correctly). Thanks for reporting the problem: I filed a glibc bug report here. https://sourceware.org/bugzilla/show_bug.cgi?id=22639