time_rz: fix issues with mktime_z failures
commitf2147e1ac4ee5644801b93425cae26335e148745
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 16 Aug 2020 18:54:44 +0000 (16 11:54 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 16 Aug 2020 18:56:10 +0000 (16 11:56 -0700)
tree5ce8d9205a4dd07b3ee6703433b3c2ce6c8c5af5
parent387ad0e841018f51bc40f2ec67c7692de1752b45
time_rz: fix issues with mktime_z failures

* lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
Use a cheaper tm_yday test for failed mktime.
ChangeLog
lib/time_rz.c