【发布时间】:2011-05-06 03:28:09
【问题描述】:
我在 Django 和 Google App Engine 上使用 python。我还在我的一个模型中使用 DateTimeProperty。有时我想向用户显示该日期和时间。
将存储在 DateTimeProperty 中的日期时间转换为用户的日期时间最好是什么?
或者更准确地提出问题:获取客户时区并将 python 日期时间对象转换为他们自己的本地时间的最佳方法是什么?
【问题讨论】:
-
刚刚弄清楚了接受是什么......谢谢
标签: python django google-app-engine localization