admin管理员组文章数量:1124799
I have a site which is pretty old (started at Django 1.6) but has been upgraded over time and is now at Django 4.2. It has always had USE_TZ=False
and TIME_ZONE='America/Chicago'
.
We have a lot of critical dates (subscriptions, purchase records, etc), many of which are fed from external webhooks from our payment processor.
I'm looking at adding another Django app, but it requires USE_TZ=True
. Anyone have any insight into what might happen if I turn it on? I've turned it on in my development environment and I don't see any obvious issues, but can't easily replicate the webhooks I receive and daily tasks that extensively use date calculations. Where should I be looking for issues?
I have a site which is pretty old (started at Django 1.6) but has been upgraded over time and is now at Django 4.2. It has always had USE_TZ=False
and TIME_ZONE='America/Chicago'
.
We have a lot of critical dates (subscriptions, purchase records, etc), many of which are fed from external webhooks from our payment processor.
I'm looking at adding another Django app, but it requires USE_TZ=True
. Anyone have any insight into what might happen if I turn it on? I've turned it on in my development environment and I don't see any obvious issues, but can't easily replicate the webhooks I receive and daily tasks that extensively use date calculations. Where should I be looking for issues?
- docs.djangoproject.com/en/5.1/topics/i18n/timezones/… – iklinac Commented 2 days ago
- I don't really get what the question is? What problem do you encounter? – willeM_ Van Onsem Commented yesterday
1 Answer
Reset to default 0I'm rather confused on what you're asking. What do you mean specifically by turn on? Turn on what?
If you want to switch from True
to False
or vice-versa for your USE_TZ
. You can go to your Django settings and change it to False
. But I believe it's True by default.
Not sure if this is the answer you're looking for, your question is kind of vague.
本文标签: timezoneSwitching Django USETZ to TrueStack Overflow
版权声明:本文标题:timezone - Switching Django USE_TZ to True - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736625720a1945669.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论