On 27 March 2016 at 15:06, Mattias Andrée <[email protected]> wrote: > The problem occur when tv_sec < -67768040609745132L. > It is not a bug in glibc. What happens is that tm_year > would overflow and therefore localtime returns NULL.
Right, yeah, that makes more sense. > I think the best solution would be check whether localtime > returns NULL. I agree. That really should be checked in any case, since it can fail. cls
