X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=date.c;h=d780846b664530111a7bb67229987f202825e66d;hb=73c9083f52ac918b530c51887bbf5fd0a1119b4c;hp=365dc3b14e47826dd7becf19a76e29bfaa6b2eb5;hpb=7b8e4ab07c6ebc72e311804c9c79ef93cfbbe704;p=git.git diff --git a/date.c b/date.c index 365dc3b14..d780846b6 100644 --- a/date.c +++ b/date.c @@ -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; @@ -584,10 +584,10 @@ static const char *approxidate_alpha(const char *date, struct tm *tm, int *num) const struct typelen *tl; const struct special *s; const char *end = date; - int n = 1, i; + int i; - while (isalpha(*++end)) - n++; + while (isalpha(*++end)); + ; for (i = 0; i < 12; i++) { int match = match_string(date, month_names[i]);