阅读背景:

在Django中显示准确的当前时间和日期的最佳方法是什么?

来源:互联网 

Currently my method involves creating a context processor which is then included sitewide. However, I notice I have problems accounting for daylight saving time changes. I live outside of the U.S. BTW and my server is in the U.S. but its time zone is set to mine. However since we don't account for daylight saving time, it's always one hour ahead of my local time.Currently my method involves creating a context




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: