#17274: Regression: "TIME_ZONE = None" fails if "USE_TZ = True" --------------------------------------+-------------------- Reporter: pressureman | Owner: nobody Type: Bug | Status: new Component: Internationalization | Version: SVN Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 --------------------------------------+-------------------- Until the recent addition of TZ-aware dates, setting "TIME_ZONE = None" in settings.py has worked fine, as stated in the comments:
# On Unix systems, a value of None will cause Django to use the same # timezone as the operating system. However, if "USE_TZ = True", any output of datetime objects in a template results in: AttributeError: 'NoneType' object has no attribute 'upper' Apparently the TZ is not being determined prior the TZ-conversion code. Tested with svn trunk r17133. -- Ticket URL: <https://code.djangoproject.com/ticket/17274> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.