get_current_timezone
You can get the name of the current time zone using the get_current_timezone tag:
看起来这玩意儿返回的是个名字类似Asia/Shanghai?你确认是这个方法?
我感觉是不是别的代码的问题
手头没django环境没法测,瞎说的
【 在 hgoldfish 的大作中提到: 】
: 我使用了 django 的 timezone.get_current_timezone() 给返回这个时区信息。
--
FROM 120.244.14.204