1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-01 09:41:44 +02:00

Greg Klanderman: 27057: %e and %f time formats were swapped

This commit is contained in:
Peter Stephenson 2009-06-26 21:10:04 +00:00
parent 6f78cb51ef
commit 506c845b25
2 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,8 @@
2009-06-26 Peter Stephenson <p.w.stephenson@ntlworld.com>
* Greg Klanderman: 27057: Src/utils.c: %e and %f time formats
were swapped.
* Frank Terbeck: users/14207:
Functions/VCS_Info/Backends/VCS_INFO_get_data_git: make
variable local.
@ -11857,5 +11860,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.4717 $
* $Revision: 1.4718 $
*****************************************************

View file

@ -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)