diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2011-11-25 09:25:43 +0000 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2011-11-25 09:25:43 +0000 |
| commit | 866c229f52df29f6b7b07463548532aae421fe42 (patch) | |
| tree | f5de4cec5cc22e9468f7e0ae3dd1d3897e1363b3 /django/utils | |
| parent | e954a03871cdc1c155ba7a3f3000dcf75998d9f4 (diff) | |
Fixed #17294 -- Supported nullable DateTimeFields when time zone support is enabled. Thanks pressureman for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17148 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils')
| -rw-r--r-- | django/utils/timezone.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/utils/timezone.py b/django/utils/timezone.py index 16e65fc62d..0476d46f7e 100644 --- a/django/utils/timezone.py +++ b/django/utils/timezone.py @@ -228,6 +228,9 @@ def now(): else: return datetime.now() +# By design, these four functions don't perform any checks on their arguments. +# The caller should ensure that they don't receive an invalid value like None. + def is_aware(value): """ Determines if a given datetime.datetime is aware. |
