author | Jeff King <peff@peff.net> | |
Mon, 31 Aug 2009 02:31:42 +0000 (22:31 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 31 Aug 2009 05:04:56 +0000 (22:04 -0700) | ||
commit | 931e8e27d94dbc24abc9c969ae0b414e0361abff | |
tree | cd72a65adcd41a0805b74d1886ee9bae7bf2841d | tree | snapshot |
parent | 34dc6e73b01011fcbe0f314d47fd6120382ae145 | commit | diff |
fix approxidate parsing of relative months and years
These were broken by b5373e9. The problem is that the code
marks the month and year with "-1" for "we don't know it
yet", but the month and year code paths were not adjusted to
fill in the current time before doing their calculations
(whereas other units follow a different code path and are
fine).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
These were broken by b5373e9. The problem is that the code
marks the month and year with "-1" for "we don't know it
yet", but the month and year code paths were not adjusted to
fill in the current time before doing their calculations
(whereas other units follow a different code path and are
fine).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
date.c | diff | blob | history | |
t/t0006-date.sh | diff | blob | history |