# HG changeset patch # User Karl Heuer # Date 838182091 0 # Node ID 5c12b862950f64325ae9e41f693ca1e3348d35d4 # Parent c96cee4f8be8d4f9308c65f5285703bd045f3cbe (Fencode_time): Assign to tm.tm_gmtoff for NEXTSTEP, since timezone environment variable is ignored. diff -r c96cee4f8be8 -r 5c12b862950f src/editfns.c --- a/src/editfns.c Wed Jul 24 03:43:56 1996 +0000 +++ b/src/editfns.c Wed Jul 24 04:21:31 1996 +0000 @@ -765,6 +765,10 @@ 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");