summaryrefslogtreecommitdiff
path: root/django/db/backends/sqlite3/utils.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2015-04-12 14:46:24 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2015-05-17 09:36:23 +0200
commitec186572e6cfde4cd4bc1491ff552c5d32211d9f (patch)
tree84bfb6b786f7dfecc535347a14284032bf0a5370 /django/db/backends/sqlite3/utils.py
parenteda12ceef16aa1a98567e25be619b05a5b3c5757 (diff)
Removed global timezone-aware datetime converters.
Refs #23820.
Diffstat (limited to 'django/db/backends/sqlite3/utils.py')
-rw-r--r--django/db/backends/sqlite3/utils.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/django/db/backends/sqlite3/utils.py b/django/db/backends/sqlite3/utils.py
deleted file mode 100644
index 6a8b3b8943..0000000000
--- a/django/db/backends/sqlite3/utils.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from django.conf import settings
-from django.utils import timezone
-from django.utils.dateparse import parse_datetime
-
-
-def parse_datetime_with_timezone_support(value):
- dt = parse_datetime(value)
- # Confirm that dt is naive before overwriting its tzinfo.
- if dt is not None and settings.USE_TZ and timezone.is_naive(dt):
- dt = dt.replace(tzinfo=timezone.utc)
- return dt