Both timesince and timeuntil should work on date objects (#17937).
(self)
| 138 | self.assertEqual(timeuntil(now_tz, now_tz_i), "0\xa0minutes") |
| 139 | |
| 140 | def test_date_objects(self): |
| 141 | """ |
| 142 | Both timesince and timeuntil should work on date objects (#17937). |
| 143 | """ |
| 144 | today = datetime.date.today() |
| 145 | self.assertEqual(timesince(today + self.oneday), "0\xa0minutes") |
| 146 | self.assertEqual(timeuntil(today - self.oneday), "0\xa0minutes") |
| 147 | |
| 148 | def test_both_date_objects(self): |
| 149 | """Timesince should work with both date objects (#9672)""" |