local_tzoffset: detect errors from tm_to_time_t