diff options
Diffstat (limited to 'time')
-rw-r--r-- | time/tzfile.c | 2 | ||||
-rw-r--r-- | time/tzset.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/time/tzfile.c b/time/tzfile.c index 4b891b4..e3cb299 100644 --- a/time/tzfile.c +++ b/time/tzfile.c @@ -421,7 +421,7 @@ __tzfile_compute (time_t timer, int use_localtime, { struct ttinfo *info = find_transition (timer); __daylight = info->isdst; - __timezone = info->offset; + __timezone = -info->offset; for (i = 0; i < num_types && i < sizeof (__tzname) / sizeof (__tzname[0]); ++i) diff --git a/time/tzset.c b/time/tzset.c index dcee9dd..385e7f7 100644 --- a/time/tzset.c +++ b/time/tzset.c @@ -548,7 +548,7 @@ tz_compute (timer, tm) return 0; __daylight = timer >= tz_rules[0].change && timer < tz_rules[1].change; - __timezone = tz_rules[__daylight ? 1 : 0].offset; + __timezone = -tz_rules[__daylight ? 1 : 0].offset; __tzname[0] = (char *) tz_rules[0].name; __tzname[1] = (char *) tz_rules[1].name; |