diff options
author | 2007-05-16 20:51:22 +0000 | |
---|---|---|
committer | 2007-05-16 20:51:22 +0000 | |
commit | bf3ff189802a382b3b23b375a26952c3327e1eee (patch) | |
tree | 55eb85dd31100fc53dfee841ff41b2dc563ed580 | |
parent | fix return values in bridge_output. (diff) | |
download | wireguard-openbsd-bf3ff189802a382b3b23b375a26952c3327e1eee.tar.xz wireguard-openbsd-bf3ff189802a382b3b23b375a26952c3327e1eee.zip |
Figure out DST by setting tm_isdst element to -1.
From Tobias Stoeckmann. OK otto@.
-rw-r--r-- | usr.bin/cvs/entries.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/entries.c b/usr.bin/cvs/entries.c index 20f10ac8281..8019f04ee94 100644 --- a/usr.bin/cvs/entries.c +++ b/usr.bin/cvs/entries.c @@ -1,4 +1,4 @@ -/* $OpenBSD: entries.c,v 1.75 2007/02/22 06:42:09 otto Exp $ */ +/* $OpenBSD: entries.c,v 1.76 2007/05/16 20:51:22 xsa Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -159,7 +159,8 @@ cvs_ent_parse(const char *entry) else { if (strptime(fields[3], "%a %b %d %T %Y", &t) == NULL) fatal("'%s' is not a valid date", fields[3]); - t.tm_isdst = 0; + + t.tm_isdst = -1; /* Figure out DST. */ t.tm_gmtoff = 0; ent->ce_mtime = mktime(&t); ent->ce_mtime += t.tm_gmtoff; |