summaryrefslogtreecommitdiff
path: root/tests/timezones
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2019-10-09 12:08:50 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-01-06 10:52:09 +0100
commit1487f16f2d29c7aeaf48117d02a1d7bbeafa3d94 (patch)
tree856bdc812510badfdf4722507027d09761b89218 /tests/timezones
parentb23fb2c8198aee5c209bb24c0738d71970cffdc4 (diff)
downloaddjango-1487f16f2d29c7aeaf48117d02a1d7bbeafa3d94.tar.gz
Fixed #11385 -- Made forms.DateTimeField accept ISO 8601 date inputs.
Thanks José Padilla for the initial patch, and Carlton Gibson for the review.
Diffstat (limited to 'tests/timezones')
-rw-r--r--tests/timezones/tests.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/timezones/tests.py b/tests/timezones/tests.py
index 91c8f9f451..67bac731f7 100644
--- a/tests/timezones/tests.py
+++ b/tests/timezones/tests.py
@@ -1081,11 +1081,6 @@ class NewFormsTests(TestCase):
self.assertTrue(form.is_valid())
self.assertEqual(form.cleaned_data['dt'], datetime.datetime(2011, 9, 1, 10, 20, 30, tzinfo=UTC))
- def test_form_with_explicit_timezone(self):
- form = EventForm({'dt': '2011-09-01 17:20:30+07:00'})
- # Datetime inputs formats don't allow providing a time zone.
- self.assertFalse(form.is_valid())
-
def test_form_with_non_existent_time(self):
with timezone.override(pytz.timezone('Europe/Paris')):
form = EventForm({'dt': '2011-03-27 02:30:00'})