localtime(%.0f) too small

(W overflow) You called localtime with an number that was smaller
than it can reliably handle and localtime probably returned the
wrong date. This warning is also triggered with nan (the special
not-a-number value).