【发布时间】:2012-12-03 09:43:37
【问题描述】:
我正在尝试将 settings.py 中的默认时区配置为“亚洲/新加坡”
但是在我这样做之后页面没有加载并且我被发送到错误页面。
目前我正在通过将 TIME_ZONE 设置为 None 来处理它
misc : 我已经下载了 python pytz
我想显示服务器时间(网站上+8 GMT 新加坡时间)
【问题讨论】:
-
Asia/Singapore在avalaible time_zone choices 中列出!见stackoverflow.com/questions/13254409/… -
再次检查 pytz 是否正在运行:从 django shell 运行
from pytz import timezoneeastern = timezone('US/Eastern')。