2 * tzone.c - get the timezone
4 * This is shared by bootpd and bootpef
10 /* XXX - Is this really SunOS specific? -gwr */
11 /* This is in <time.h> but only visible if (__STDC__ == 1). */
23 /* This is what other modules use. */
27 * Get our timezone offset so we can give it to clients if the
28 * configuration file doesn't specify one.
34 /* XXX - Is this really SunOS specific? -gwr */
35 secondswest = timezone;
41 if ((tm = localtime(&now)) == NULL) {
42 secondswest = 0; /* Assume GMT for lack of anything better */
43 report(LOG_ERR, "localtime() failed");
45 secondswest = -tm->tm_gmtoff;