comparison src/editfns.c @ 15779:5c12b862950f

(Fencode_time): Assign to tm.tm_gmtoff for NEXTSTEP, since timezone environment variable is ignored.
author Karl Heuer <kwzh@gnu.org>
date Wed, 24 Jul 1996 04:21:31 +0000
parents 5ddb082ffebb
children 80a852988718
comparison
equal deleted inserted replaced
15778:c96cee4f8be8 15779:5c12b862950f
763 { 763 {
764 int abszone = abs (XINT (zone)); 764 int abszone = abs (XINT (zone));
765 sprintf (tzbuf, "XXX%s%d:%02d:%02d", "-" + (XINT (zone) < 0), 765 sprintf (tzbuf, "XXX%s%d:%02d:%02d", "-" + (XINT (zone) < 0),
766 abszone / (60*60), (abszone/60) % 60, abszone % 60); 766 abszone / (60*60), (abszone/60) % 60, abszone % 60);
767 tzstring = tzbuf; 767 tzstring = tzbuf;
768 #ifdef _NEXT_SOURCE
769 /* On NEXTSTEP, timezone environment var is ignored. */
770 tm.tm_gmtoff = -abszone;
771 #endif
768 } 772 }
769 else 773 else
770 error ("Invalid time zone specification"); 774 error ("Invalid time zone specification");
771 775
772 /* Set TZ before calling mktime; merely adjusting mktime's returned 776 /* Set TZ before calling mktime; merely adjusting mktime's returned