diff --git a/main/stdtime/localtime.c b/main/stdtime/localtime.c index 2d60beefd40db9ec3771c8925d247c07592ba39e..445f93a55f01ca532ad5f35b62375ed3bc91e7bb 100644 --- a/main/stdtime/localtime.c +++ b/main/stdtime/localtime.c @@ -1128,7 +1128,9 @@ 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; +#ifndef SOLARIS /* Solaris doesn't have this element */ tmp->tm_gmtoff = ttisp->tt_gmtoff; +#endif #ifdef TM_ZONE tmp->TM_ZONE = &sp->chars[ttisp->tt_abbrind]; #endif /* defined TM_ZONE */