momentjs - Momentjs - 无法在 UTC 中设置小时和分钟
问题描述
为什么
moment().utc("14:30", "HH:mm").format()
给我
2019-06-07T00:56:14Z - 我的当地时间
代替
2019-06-07T14:30:14Z
提前感谢您的帮助。
解决方案
()
使用没有这样的时刻moment.utc("14:30", "HH:mm").format()
推荐阅读
- c# - 如何在运行时修改“DataMember”属性的“Order”?
- java - 打开失败:尝试创建 csv 文件时 EACCES(权限被拒绝)
- html - 为什么我的 input type="submit" 有效,但用 button type="submit" 替换它不起作用?
- java - Java,输入为空时如何中断循环?
- python - 如何获取 TTLCache 的当前使用情况?
- laravel - 如何在另一个 PHP 项目中部署 Laravel 5.8 项目?
- python - 在 CKEditor 中仅获取 RichTextField 中的文本?
- java - 在 onCreateView 而不是 onResume 中更新我的适配器
- google-sheets - Google 表格查询 WHERE 仅返回第一行
- javascript - 为什么 0.3 - 0.2 - 0.1 在 javascript 中不等于 0?