moment js 可以获取时区吗可以先转成utc时间,再指定时区。代码:<%= moment(docs[i].createdAt).utc().zone(-8).format(‘YYYY-MM-DD HH:mm:ss’) %>安装moment2023-02-22JavaScript80