Code

Fix approxidate("never") to always return 0
authorOlivier Marin <dkr@freesurf.fr>
Tue, 17 Jun 2008 16:34:57 +0000 (18:34 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Jun 2008 23:40:09 +0000 (16:40 -0700)
commit8c6b57860d9be5f346c9589a08c9e7c04eeaf99b
treea343d2f84314a6484ab5545d0810fafd655cad70
parent1d9b26562e12fabd60bb4174b7e6b10f4f4a0ec8
Fix approxidate("never") to always return 0

Commit af66366a9feb0194ed04b1f538998021ece268a8 introduced the keyword
"never" to be used with approxidate() but defined it with a fixed date
without taking care of timezone. As a result approxidate() will return
a timestamp in the future with a negative timezone.

With this patch, approxidate("never") always return 0 whatever your
timezone is.

Signed-off-by: Olivier Marin <dkr@freesurf.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
date.c