diff --git a/main/stdtime/localtime.c b/main/stdtime/localtime.c index af8fe391d57769febc0f6b21ac730db612c6665a..44607c921a86295092479a34267e1ff6a9877ddd 100644 --- a/main/stdtime/localtime.c +++ b/main/stdtime/localtime.c @@ -1131,6 +1131,7 @@ static struct ast_tm *localsub(const struct timeval *timep, const long offset, s */ 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 */