Django时间时区
datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'),得到的是标准时区的时间字符串
https://blog.csdn.net/qiaominghe/article/details/86593744
https://blog.csdn.net/qq_42778001/article/details/111088130
https://zhuanlan.zhihu.com/p/24246164
from django.utils.timezone import localtime
t = localtime(c.create_time)
https://www.cnblogs.com/liuzhanghao/p/12987082.html
暂时方案:未知是否可以自动根据用户时区来转换
from django.utils import timezone
t = timezone.localtime(c.create_time)
# timezone.localdate()只返回日期 时分秒为0
重点::::https://www.cnblogs.com/liuzhanghao/p/12987082.html
标签:www,笔记,Django,https,三十五,timezone,com,localtime
From: https://www.cnblogs.com/zhlforhe/p/18014636