diff --git a/docs/topics/i18n/timezones.txt b/docs/topics/i18n/timezones.txt index 22a0edb073..e4a043b08f 100644 --- a/docs/topics/i18n/timezones.txt +++ b/docs/topics/i18n/timezones.txt @@ -189,6 +189,8 @@ Add the following middleware to :setting:`MIDDLEWARE_CLASSES`:: tz = request.session.get('django_timezone') if tz: timezone.activate(tz) + else: + timezone.deactivate() Create a view that can set the current timezone::