gpt4 book ai didi

javascript - 转换javascript日期时区的正确方法

转载 作者:行者123 更新时间:2023-11-30 17:44:43 24 4
gpt4 key购买 nike

<分区>

我正在使用以下列格式返回时间值的 API:

2013:02:27T06:39:25

请注意缺少任何时区标识符。

来自 API 文档:

https://partner-api.groupon.com/ledger

"Transaction timestamp of the ledger entry in the affiliate's time-zone.. The format is YYYY-MM-DDThh:mm:ss.. Example 2013:02:27T06:39:25"

显然,API 响应时区是 EST(附属公司的时区)。从中导出 UTC 时区值以存储在 MongoDB 数据库中的最佳方法是什么。

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com