dtcm: resolve mismatch between tm.tm_gmtoff and global timezone

`timezone` and `tm.tm_gmtoff` represent reversed sign value each other.
Change `tm.tm_gmtoff` usage to be matched with `timezone`.
This commit is contained in:
OBATA Akio
2021-10-17 12:19:52 +09:00
parent 224f04cb29
commit fb91c9416d
3 changed files with 3 additions and 3 deletions

View File

@@ -1423,7 +1423,7 @@ _DtCm_rtable_gmtoff_4_svc(void *args, struct svc_req *svcrq)
#if defined(CSRG_BASED)
ctime = time(NULL);
t = localtime(&ctime);
gmtoff = t->tm_gmtoff;
gmtoff = - t->tm_gmtoff;
#else
gmtoff = timezone;
#endif