summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2009-02-21 19:46:41 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2009-02-21 19:46:41 +0000
commitb8594f330afb8944c59a269b5bff0ae27f37c7a7 (patch)
tree8a4e7ecef7b1625f05ba7577af2a7ee8d5ee60d0
parentd94b2eb321046ebf7a9b81e6c8050df1bd09f45f (diff)
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) {