diff --git a/main/stdtime/localtime.c b/main/stdtime/localtime.c index 1922e4a22d..16274c8ece 100644 --- a/main/stdtime/localtime.c +++ b/main/stdtime/localtime.c @@ -1133,6 +1133,7 @@ static struct tm *localsub(const time_t *timep, const long offset, struct tm *tm */ result = timesub(&t, ttisp->tt_gmtoff, sp, tmp); tmp->tm_isdst = ttisp->tt_isdst; + tmp->tm_gmtoff = ttisp->tt_gmtoff; #ifdef TM_ZONE tmp->TM_ZONE = &sp->chars[ttisp->tt_abbrind]; #endif /* defined TM_ZONE */