summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-04-28 12:30:26 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-04-28 12:30:26 +0000
commit2bb65054cf497712f5fbe17a27c028f67b503a9c (patch)
tree098217e702c36608fae0507db39fba95472b66cf
parent795e76a9633f1068335286b5e46952a84821725b (diff)
fix date format output if a timezone is specified (-z);
-rw-r--r--usr.bin/rcs/rlog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rcs/rlog.c b/usr.bin/rcs/rlog.c
index d19ccbd9cc7..c7e5083466e 100644
--- a/usr.bin/rcs/rlog.c
+++ b/usr.bin/rcs/rlog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rlog.c,v 1.52 2006/04/26 21:55:22 joris Exp $ */
+/* $OpenBSD: rlog.c,v 1.53 2006/04/28 12:30:25 xsa Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -332,7 +332,7 @@ rlog_rev_print(struct rcs_delta *rdp)
if (timezone_flag != NULL) {
rcs_set_tz(timezone_flag, rdp, &t);
- fmt = "%Y/%m/%d %H:%M:%S%z";
+ fmt = "%Y-%m-%d %H:%M:%S%z";
} else {
t = rdp->rd_date;
fmt = "%Y/%m/%d %H:%M:%S";