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