Add a localdate() function to get date in a different time zone
Carl says, "That's the most straightforward implementation I know of. I think it would make sense as timezone.today()
. I've reimplemented it in at least two projects. Also, the first time I implemented it I left out the .localtime() and didn't catch the bug for quite a while. An argument for adding it to Django."
Change History
(11)
Owner: |
changed from nobody to Konrad Świat
|
Status: |
new → assigned
|
Needs documentation: |
unset
|
Has patch: |
set
|
Triage Stage: |
Accepted → Ready for checkin
|
Patch needs improvement: |
set
|
Triage Stage: |
Ready for checkin → Accepted
|
Patch needs improvement: |
unset
|
Summary: |
Move views.generic.dates.timezone_today() to utils.timezone → Add a localdate() function to get date in a different time zone
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
I appended the
ref/utils
.