diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2007-05-16 20:51:23 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2007-05-16 20:51:23 +0000 |
commit | d9fc31825a8af00842b8baa1442003d026416729 (patch) | |
tree | 17f62558cfb68473c0155d6fd33d81cec1be0d70 /usr.bin/cvs/entries.c | |
parent | 51a424a6d69e5672d78951b50cd93adbf70d9d45 (diff) |
Figure out DST by setting tm_isdst element to -1.
From Tobias Stoeckmann. OK otto@.
Diffstat (limited to 'usr.bin/cvs/entries.c')
-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; |