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

@@ -986,7 +986,7 @@ gmt_off(void)
t = now();
tm = *_XLocaltime(&t, localtime_buf);
gmt = tm.tm_gmtoff;
gmt = - tm.tm_gmtoff;
#endif /* SVR4 */
return(gmt);
}