about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-06-26 21:10:04 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-06-26 21:10:04 +0000
commit506c845b25be0fa9aff60fd4b8e0a3e96523ec25 (patch)
tree2fa650c86b66c4d1dd9fe473bf36305748df857f /Src/utils.c
parent6f78cb51ef245bc0cc4c52302a2c9503f052b7be (diff)
downloadzsh-506c845b25be0fa9aff60fd4b8e0a3e96523ec25.tar.gz
zsh-506c845b25be0fa9aff60fd4b8e0a3e96523ec25.tar.xz
zsh-506c845b25be0fa9aff60fd4b8e0a3e96523ec25.zip
Greg Klanderman: 27057: %e and %f time formats were swapped
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 687a396fa..510a02b65 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -2489,10 +2489,10 @@ ztrftime(char *buf, int bufsize, char *fmt, struct tm *tm)
 		    *buf++ = '0' + tm->tm_mday / 10;
 		*buf++ = '0' + tm->tm_mday % 10;
 		break;
-	    case 'e':
+	    case 'f':
 		strip = 1;
 		/* FALLTHROUGH */
-	    case 'f':
+	    case 'e':
 		if (tm->tm_mday > 9)
 		    *buf++ = '0' + tm->tm_mday / 10;
 		else if (!strip)