diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2002-01-03 09:24:03 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2002-01-03 09:24:03 +0000 |
commit | f1b80958feeca33866c6485f0e0503551c685713 (patch) | |
tree | 596bfc48f96460b811b91a72613cc5c374d32eaf /sbin/isakmpd/policy.c | |
parent | b73ad98ab184d778427b6f5e603fb9df18878950 (diff) |
strftime format fixes. From Christo Butcher <christo@fox-it.com>.
Diffstat (limited to 'sbin/isakmpd/policy.c')
-rw-r--r-- | sbin/isakmpd/policy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/isakmpd/policy.c b/sbin/isakmpd/policy.c index fb490b6c041..10eae078e02 100644 --- a/sbin/isakmpd/policy.c +++ b/sbin/isakmpd/policy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: policy.c,v 1.46 2001/08/26 01:48:12 niklas Exp $ */ +/* $OpenBSD: policy.c,v 1.47 2002/01/03 09:24:02 ho Exp $ */ /* $EOM: policy.c,v 1.49 2000/10/24 13:33:39 niklas Exp $ */ /* @@ -1655,14 +1655,14 @@ policy_callback (char *name) if (strcmp (name, "GMTTimeOfDay") == 0) { tt = time ((time_t) NULL); - strftime (mytimeofday, 14, "%G%m%d%H%M%S", gmtime (&tt)); + strftime (mytimeofday, 14, "%Y%m%d%H%M%S", gmtime (&tt)); return mytimeofday; } if (strcmp (name, "LocalTimeOfDay") == 0) { tt = time ((time_t) NULL); - strftime (mytimeofday, 14, "%G%m%d%H%M%S", localtime (&tt)); + strftime (mytimeofday, 14, "%Y%m%d%H%M%S", localtime (&tt)); return mytimeofday; } |