make_aware() and make_naive() should default to the current timezone
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>
Change History
(4)
Has patch: |
set
|
Triage Stage: |
Unreviewed → Accepted
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
In 59026bfbf957cd31c659bdfac36d992816eba114: