blob: 4e21c91b8bd60c870a486b9c064b034511b3ca6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
*** time.c.orig Sat Mar 14 23:22:29 1992
--- time.c Wed Apr 23 13:15:42 1997
***************
*** 13,20 ****
* returning 0.
*/
- #define TZB
-
#ifdef VMS
#undef TZA
#undef TZB
--- 13,18 ----
***************
*** 62,68 ****
--- 60,71 ----
sex_dec (tp->tm_hour, tp->tm_min, tp->tm_sec, &hr);
mjd = day + hr/24.0;
tp = localtime (&c);
+ #ifdef __FreeBSD__
+ tz = -tp->tm_gmtoff/3600;
+ strcpy(tznm, tp->tm_zone);
+ #else
settzstuff (tp->tm_isdst ? 1 : 0, np);
+ #endif
} else {
/* if gmtime() doesn't work, we assume the timezone stuff won't
* either, so we just use what it is and leave it alone. Some
|