diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-04-29 04:59:49 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-04-29 04:59:49 +0000 |
commit | f987ddd05a707049dee9b3a0e0e13922c507f844 (patch) | |
tree | b52acf0b5c786c2e8a50b765c17afc3db24cd1e5 /usr.bin/rcs/ci.c | |
parent | d6dd4390b461cf1494153c9bd5705fff78ae54c1 (diff) |
Make ci store gmtime instead of localtime in RCS files, like GNU.
OK xsa@
Diffstat (limited to 'usr.bin/rcs/ci.c')
-rw-r--r-- | usr.bin/rcs/ci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c index 088753a8698..a2ff9613060 100644 --- a/usr.bin/rcs/ci.c +++ b/usr.bin/rcs/ci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ci.c,v 1.163 2006/04/26 21:55:22 joris Exp $ */ +/* $OpenBSD: ci.c,v 1.164 2006/04/29 04:59:48 ray Exp $ */ /* * Copyright (c) 2005, 2006 Niall O'Higgins <niallo@openbsd.org> * All rights reserved. @@ -483,9 +483,9 @@ checkin_update(struct checkin_params *pb) fmt = "%Y/%m/%d %H:%M:%S"; - t = localtime(&pb->date); + t = gmtime(&pb->date); strftime(dbuf1, sizeof(dbuf1), fmt, t); - t_head = localtime(&head_date); + t_head = gmtime(&head_date); strftime(dbuf2, sizeof(dbuf2), fmt, t_head); errx(1, "%s: Date %s preceeds %s in revision %s.", |