Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有日期时间 2013-08-02 11:23:52,我知道它在 MST7MDT 时区。但是,当我创建时,我moment("2013-08-02 11:23:52")在自定义用户时区中有时刻对象。在创建时刻对象期间如何设置时区?
moment("2013-08-02 11:23:52")
假设您正在谈论时刻时区,这在 0.0.1 版本中当前不存在,但已被请求。有一个挂起的拉取请求,但它还没有被合并,因为仍然缺少一些功能。因此,您可以尝试手动添加该 PR,或者您可以等到它稳定后。
您也可以考虑改用其他时区库之一。