#23668: make_aware() and make_naive() should default to the current timezone -----------------------------+-------------------- Reporter: jdufresne | Owner: nobody Type: New feature | Status: new Component: Utilities | Version: master Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -----------------------------+-------------------- Currently, the timezone utility functions `make_aware()` and `make_naive()` require two arguments, a datetime object and a timezone. With `make_aware()`, frequently the user will need to convert a naive datetime object to the current (or default) timezone. As this appears to be the most common usage of `make_aware()` it ought to be the default. Therefore the function will be easier to use and will "do the right thing" by default.
Pull request <https://github.com/django/django/pull/3377> -- Ticket URL: <https://code.djangoproject.com/ticket/23668> 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/052.4f8fd0760254ae76c429ab75b3b2b83f%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.