微信小程序时区,直接使用和使用storage存储显示的不一样

小程序 文章 2022-01-28 11:40 554 0 全屏看文

AI助手支持GPT4.0

微信小程序时区,直接使用和使用storage存储显示的不一样Wechat applet time zone, which is different when used directly and stored using storage

微信小程序时区,直接使用和使用storage存储显示的不一样
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug storage 工具 8.0.9以上版本 2.19.6

都是通过new Date()记录时间,但是这2个时区显示的不一样

Framework type problem type API / component name terminal type wechat version basic library version applet bug storage tool version 2.19.6 above 8.0.9 records the time through new date(), but the two time zones display differently

回答:

圣殿骑士:

不是BUG啊大哥。。。这就是时间格式的区别

Mr.Zhao:

这不是BUG

困难:

格式不同而已,GMT和UTC格式。

-EOF-

AI助手支持GPT4.0