Support Timezone in DateTimeField for the Meetup model
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
调研方向
Locate the Meetup model and its time DateTimeField, then trace how the field receives the naive datetimes shown in the warning. Reproduce the warning with timezone support enabled and confirm that the Meetup time is handled without that warning.
由索引模型根据 Issue 内容生成。
描述
2021-03-23T12:31:11.405922+00:00 app[web.1]: /app/.heroku/python/lib/python3.9/site-packages/django/db/models/fields/__init__.py:1367: RuntimeWarning: DateTimeField Meetup.time received a naive datetime (2021-03-23 12:31:11.405466) while time zone support is active.
2021-03-23T12:31:11.405933+00:00 app[web.1]: warnings.warn("DateTimeField %s received a naive datetime (%s)"
2021-03-23T12:31:11.406411+00:00 app[web.1]: /app/.heroku/python/lib/python3.9/site-packages/django/db/models/fields/__init__.py:1367: RuntimeWarning: DateTimeField Meetup.time received a naive datetime (2021-06-23 12:31:11.405466) while time zone support is active.
2021-03-23T12:31:11.406413+00:00 app[web.1]: warnings.warn("DateTimeField %s received a naive datetime (%s)"
- 主要语言
- Python
- 星标
- 17
- 派生
- 27
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PythonIreland/website 的其他 Issue
-
难度 5/5 一周以上 新手友好度 15/100
PythonIreland/website#205 ·
-
难度 3/5 1-2 天 新手友好度 25/100
PythonIreland/website#204 ·
-
dependencies enhancement
难度 2/5 1-3 小时 新手友好度 52/100
PythonIreland/website#187 ·
-
dependencies enhancement
难度 4/5 3-5 天 新手友好度 25/100
PythonIreland/website#184 · 8 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
PythonIreland/website#177 ·
查看 PythonIreland/website 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
rules
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 70/100
huggingface/Repo2RLEnv#163 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 95/100
huggingface/sentence-transformers#4074 ·
-
comp/dashboard invalid P3
难度 2/5 1-3 小时 新手友好度 70/100
NousResearch/hermes-agent#121143 ·