diff options
author | Junio C Hamano <junkio@cox.net> | 2006-04-04 22:57:15 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-04-04 23:00:18 -0700 |
commit | fa0cdab537b1ae635b5a64cddd29cddf2dfc4a1b (patch) | |
tree | 718883ab1ba866763b2cc2bab857939d4906f9f3 /date.c | |
parent | 72fdfb50f721460e4cdff16fbe9c72d4ce6c668c (diff) | |
download | git-fa0cdab537b1ae635b5a64cddd29cddf2dfc4a1b.tar.gz |
parse_date(): fix parsing 03/10/2006
The comment associated with the date parsing code for three
numbers separated with slashes or dashes implied we wanted to
interpret using this order:
yyyy-mm-dd
yyyy-dd-mm
mm-dd-yy
dd-mm-yy
However, the actual code had the last two wrong, and making it
prefer dd-mm-yy format over mm-dd-yy.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'date.c')
-rw-r--r-- | date.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -257,10 +257,10 @@ static int match_multi_number(unsigned long num, char c, const char *date, char break; } /* mm/dd/yy ? */ - if (is_date(num3, num2, num, tm)) + if (is_date(num3, num, num2, tm)) break; /* dd/mm/yy ? */ - if (is_date(num3, num, num2, tm)) + if (is_date(num3, num2, num, tm)) break; return 0; } |