summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLandry Breuil <landry@cvs.openbsd.org>2011-01-19 16:50:15 +0000
committerLandry Breuil <landry@cvs.openbsd.org>2011-01-19 16:50:15 +0000
commit2ffd1cacb5c2b31175dfb656aaad359ee4a3cf26 (patch)
tree923fe701a7b152f484598f6b562163ff5237d0a4
parent3769f5ab1677f1c7bd63fee372f9b93fec1e3f81 (diff)
Fix typo, %F pattern corresponds to %Y-%m-%d (the ISO 8601 date format),
not %Y/%m/%d. Found while debugging geo/gpx-viewer. ok millert@ jasper@
-rw-r--r--lib/libc/time/strptime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/time/strptime.c b/lib/libc/time/strptime.c
index 31baa6f0710..d3398d12aa8 100644
--- a/lib/libc/time/strptime.c
+++ b/lib/libc/time/strptime.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strptime.c,v 1.13 2010/11/08 19:16:16 jasper Exp $ */
+/* $OpenBSD: strptime.c,v 1.14 2011/01/19 16:50:14 landry Exp $ */
/* $NetBSD: strptime.c,v 1.12 1998/01/20 21:39:40 mycroft Exp $ */
/*-
@@ -142,7 +142,7 @@ literal:
case 'F': /* The date as "%Y-%m-%d". */
_LEGAL_ALT(0);
- if (!(bp = _strptime(bp, "%Y/%m/%d", tm, 0)))
+ if (!(bp = _strptime(bp, "%Y-%m-%d", tm, 0)))
return (NULL);
continue;