2 * tzone.c - get the timezone
4 * This is shared by bootpd and bootpef
6 * $FreeBSD: src/libexec/bootpd/tzone.c,v 1.1.1.1.14.1 2000/11/11 00:10:41 dirk Exp $
7 * $DragonFly: src/libexec/bootpd/tzone.c,v 1.2 2003/06/17 04:27:07 dillon Exp $
11 /* XXX - Is this really SunOS specific? -gwr */
12 /* This is in <time.h> but only visible if (__STDC__ == 1). */
24 /* This is what other modules use. */
28 * Get our timezone offset so we can give it to clients if the
29 * configuration file doesn't specify one.
35 /* XXX - Is this really SunOS specific? -gwr */
36 secondswest
= timezone
;
42 if ((tm
= localtime(&now
)) == NULL
) {
43 secondswest
= 0; /* Assume GMT for lack of anything better */
44 report(LOG_ERR
, "localtime() failed");
46 secondswest
= -tm
->tm_gmtoff
;