标签:%s ftime shang int str bsp time style rom
在使用django框架时,需要在settings中将时区设置成上海
TIME_ZONE = ‘Asia/Shanghai‘ USE_TZ = True
手动方式:
from django.utils import timezone # print(timezone.localtime(i.create_time).strftime("%Y-%m-%d %H:%M:%S"))
标签:%s ftime shang int str bsp time style rom
原文地址:https://www.cnblogs.com/lutt/p/12723196.html