mirror of
https://github.com/django/django.git
synced 2025-07-22 20:55:17 +00:00
Fixed a stupid bug in the implementation of timezone.make_aware.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17332 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b895b297a6
commit
fc9e0606d5
2 changed files with 28 additions and 1 deletions
|
@ -267,5 +267,5 @@ def make_naive(value, timezone):
|
|||
value = value.astimezone(timezone)
|
||||
if hasattr(timezone, 'normalize'):
|
||||
# available for pytz time zones
|
||||
return timezone.normalize(value)
|
||||
value = timezone.normalize(value)
|
||||
return value.replace(tzinfo=None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue