summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2007-01-27 18:53:17 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2007-01-27 18:53:17 +0000
commitc7d60c95b6911eaef0d7721bd9f7fe23f5c9c9fd (patch)
treee560f9e2f3ce4e8170461d198eac4b7751c79e6b /usr.bin/cvs
parent85700c37151b4238b6987016dee55d9479e74cf0 (diff)
mktime() produces local time, so add in tm_gmtoff to get UTC.
ok xsa@ and joris@
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/entries.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cvs/entries.c b/usr.bin/cvs/entries.c
index 3118f5e2490..a771727dcff 100644
--- a/usr.bin/cvs/entries.c
+++ b/usr.bin/cvs/entries.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: entries.c,v 1.70 2007/01/26 11:19:44 joris Exp $ */
+/* $OpenBSD: entries.c,v 1.71 2007/01/27 18:53:16 otto Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -165,6 +165,7 @@ cvs_ent_parse(const char *entry)
t.tm_isdst = 0;
t.tm_gmtoff = 0;
ent->ce_mtime = mktime(&t);
+ ent->ce_mtime += t.tm_gmtoff;
}
}