#28911: Add support for the Msft time zone required on Windows Subsystem for Linux --------------------------------------+------------------------------------ Reporter: El'endia Starman | Owner: nobody Type: Cleanup/optimization | Status: new Component: Utilities | Version: 1.11 Severity: Normal | Resolution: Keywords: timezone | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 --------------------------------------+------------------------------------
Comment (by El'endia Starman): Replying to [comment:4 Tim Graham]: > I guess the problem is real. I'm still not sure that the proposed solution is appropriate for the reason I mentioned earlier. I agree my quick get-this-working-asap hack is most likely not the ideal solution. I was going to suggest somehow getting time info and figuring out a pytz-compatible timezone from there, but [https://github.com/Microsoft/WSL/issues/856 this GitHub issue] does not give me confidence that this can be done. ''Perhaps'' it would be okay to change `return pytz.timezone(settings.TIME_ZONE)` to `return pytz.timezone('UTC' if settings.TIME_ZONE == 'Msft' else settings.TIME_ZONE)` instead? Maybe also print out a warning on startup. -- Ticket URL: <https://code.djangoproject.com/ticket/28911#comment:5> 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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/072.c85d577e7046d40f49cc06233b1bd911%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.