projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
ae448e3
)
Merge branch 'pe/date'
author
Junio C Hamano
<junkio@cox.net>
Sun, 18 Jun 2006 00:49:28 +0000
(17:49 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Sun, 18 Jun 2006 00:49:28 +0000
(17:49 -0700)
* pe/date:
date.c: improve guess between timezone offset and year.
date.c
patch
|
blob
|
history
diff --git
a/date.c
b/date.c
index
365dc3b
..
66be23a
100644
(file)
--- 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 <= 1
2
00 && *offset == -1) {
+ if (num <= 1
4
00 && *offset == -1) {
unsigned int minutes = num % 100;
unsigned int hours = num / 100;
*offset = hours*60 + minutes;