diff options
Diffstat (limited to 'lib/time_rz.c')
-rw-r--r-- | lib/time_rz.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/time_rz.c b/lib/time_rz.c index 396cdd2020..8a0cbb207d 100644 --- a/lib/time_rz.c +++ b/lib/time_rz.c @@ -288,9 +288,8 @@ localtime_rz (timezone_t tz, time_t const *t, struct tm *tm) timezone_t old_tz = set_tz (tz); if (old_tz) { - if (localtime_r (t, tm) && !save_abbr (tz, tm)) - tm = NULL; - if (revert_tz (old_tz)) + bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); + if (revert_tz (old_tz) && abbr_saved) return tm; } return NULL; |