(Fencode_time): Assign to tm.tm_gmtoff for NEXTSTEP,
since timezone environment variable is ignored.
This commit is contained in:
parent
cfbaa90cb0
commit
fc42d823cf
1 changed files with 4 additions and 0 deletions
|
@ -765,6 +765,10 @@ If you want them to stand for years in this century, you must do that yourself."
|
|||
sprintf (tzbuf, "XXX%s%d:%02d:%02d", "-" + (XINT (zone) < 0),
|
||||
abszone / (60*60), (abszone/60) % 60, abszone % 60);
|
||||
tzstring = tzbuf;
|
||||
#ifdef _NEXT_SOURCE
|
||||
/* On NEXTSTEP, timezone environment var is ignored. */
|
||||
tm.tm_gmtoff = -abszone;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
error ("Invalid time zone specification");
|
||||
|
|
Loading…
Add table
Reference in a new issue