According to the docs for settings.TIMEZONE: "Django cannot reliably use alternate time zones in a Windows environment. If you’re running Django on Windows, TIME_ZONE <https://groups.google.com/forum/#std:setting-TIME_ZONE> must be set to match the system time zone."
If we keep supporting settings.TIME_ZONE=None I think that means this branch stays: https://github.com/django/django/blob/a3a10f8abe43c443f217d75153f50b53fbe71be2/django/utils/timezone.py#L180-L182 which means we have to keep LocalTimezone: https://github.com/django/django/blob/a3a10f8abe43c443f217d75153f50b53fbe71be2/django/utils/timezone.py#L82-L151 or is there some other approach we could take? Is anyone reading this using settings.TIME_ZONE=None? On Monday, October 10, 2016 at 6:00:51 PM UTC-4, Florian Apolloner wrote: > > > > On Monday, October 10, 2016 at 9:50:51 PM UTC+2, Aymeric Augustin wrote: >> >> I think it’s best to state the expected value explicitly. >> > > In theory yes, in pratice I think that is at least annoying on Windows > which only allows for the System-TZ I think? > > Cheers, > Florian > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/e2c31cdf-fba1-4593-93a9-142d163a61e5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.