Skip to content

Commit

Permalink
Merge branch 'pe/date'
Browse files Browse the repository at this point in the history
* pe/date:
  date.c: improve guess between timezone offset and year.
  • Loading branch information
Junio C Hamano committed Jun 18, 2006
2 parents ae448e3 + 7122f82 commit 8c278ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion date.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ static int match_digit(const char *date, struct tm *tm, int *offset, int *tm_gmt

/* Four-digit year or a timezone? */
if (n == 4) {
if (num <= 1200 && *offset == -1) {
if (num <= 1400 && *offset == -1) {
unsigned int minutes = num % 100;
unsigned int hours = num / 100;
*offset = hours*60 + minutes;
Expand Down

0 comments on commit 8c278ab

Please sign in to comment.