【发布时间】:2014-03-16 07:07:45
【问题描述】:
我刚刚按照 django 网站 https://docs.djangoproject.com/en/dev/ref/class-based-views/generic-date-based/ 上的说明进行操作,TodayArchiveView 显示的是第二天的日期。
我的设置 TIME_ZONE = 'UTC' 并将其更改为 TIME_ZONE = 'America/Los_Angeles' 并且 TodayArchiveView 有效,但这是正确的方法吗?如果用户在欧洲,他会得到正确的时区吗?
【问题讨论】:
-
把网址给我,我帮你测试一下:)(德国)
标签: python django django-models timezone django-timezone