summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-06-18 00:49:28 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-06-18 00:49:28 (GMT)
commit8c278abcbe35b23e9f93e99daf2144336fad1849 (patch)
tree6190e0f7366958ed15583c8c9d64fc1a736e2e61
parentae448e3854d8b6e7e37aa88fa3917f5dd97f3210 (diff)
parent7122f82f56425d942bc5e892ed5e6b3bbd0a6724 (diff)
downloadgit-8c278abcbe35b23e9f93e99daf2144336fad1849.zip
git-8c278abcbe35b23e9f93e99daf2144336fad1849.tar.gz
git-8c278abcbe35b23e9f93e99daf2144336fad1849.tar.bz2
Merge branch 'pe/date'
* pe/date: date.c: improve guess between timezone offset and year.
-rw-r--r--date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/date.c b/date.c
index 365dc3b..66be23a 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;