fix integer overflow of tm_year in __secs_to_tm