Reduce scope of orig_tm_isdst variable