Fixed #7201 -- Fixed the timeuntil filter to work correctly with timezone-aware
commitc3b05bddf06a91ddd85fc5779b55c1c7d273d31d
authormtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Tue, 26 Aug 2008 08:08:55 +0000 (26 08:08 +0000)
committermtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Tue, 26 Aug 2008 08:08:55 +0000 (26 08:08 +0000)
tree347fb6354a1108a9435d01a6740f756dc9f50a82
parentfcdd2e370231199adc11ccea1c1de325538de08b
Fixed #7201 -- Fixed the timeuntil filter to work correctly with timezone-aware
times. Patch from Jeremy Carbaugh.

This is backwards incompatible in the sense that previously, if you tried to
compare timezone-aware and timezone-naive values, you got an incorrect result.
Now you get an empty string. So your previously incorrect code returns a
different incorrect result.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8579 bcc190cf-cafb-0310-a4f2-bffc1f526a37
AUTHORS
django/template/defaultfilters.py
django/utils/timesince.py
docs/ref/templates/builtins.txt
tests/regressiontests/templates/filters.py
tests/regressiontests/utils/timesince.py