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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user