fix: render datetimes with tooltip showing time delta from now
This commit is contained in:
parent
ca20fdfd03
commit
0619f070c7
6 changed files with 17 additions and 37 deletions
|
|
@ -207,7 +207,8 @@ class TestWuttaDateTimeWidget(WebTestCase):
|
|||
# input data (from schema type) is always "local, zone-aware, isoformat"
|
||||
dt = datetime.datetime(2024, 12, 12, 13, 49, tzinfo=tzlocal)
|
||||
result = widget.serialize(field, dt.isoformat())
|
||||
self.assertEqual(result, "2024-12-12 13:49-0500")
|
||||
self.assertTrue(result.startswith('<span title="'))
|
||||
self.assertIn("2024-12-12 13:49-0500", result)
|
||||
|
||||
|
||||
class TestWuttaMoneyInputWidget(WebTestCase):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue