summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2009-02-21 19:46:40 +0000
committertobias <tobias@openbsd.org>2009-02-21 19:46:40 +0000
commit761daeb8e4a3ae763db074dcba3348d43400c5a6 (patch)
treef57c84898da847d8da46bdec8d51df35378e4fcd
parentAdded missing newlines in error messages. (diff)
downloadwireguard-openbsd-761daeb8e4a3ae763db074dcba3348d43400c5a6.tar.xz
wireguard-openbsd-761daeb8e4a3ae763db074dcba3348d43400c5a6.zip
Properly convert dates between timezones before comparison.
ok joris
-rw-r--r--usr.bin/cvs/rcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index bbe4e8d98ba..38c3a817217 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.285 2009/02/18 20:08:24 joris Exp $ */
+/* $OpenBSD: rcs.c,v 1.286 2009/02/21 19:46:40 tobias Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -3618,7 +3618,7 @@ rcs_translate_tag(const char *revstr, RCSFILE *rfp)
rcsnum_free(rev);
do {
- deltatime = timelocal(&(rdp->rd_date));
+ deltatime = timegm(&(rdp->rd_date));
if (RCSNUM_ISBRANCHREV(rdp->rd_num)) {
if (deltatime > cdate) {