2016-08-16 74 views
0

有可能在角度输入[日期时间本地]组件中使用24小时格式? (https://docs.angularjs.org/api/ng/input/input%5Bdatetime-local%5D角度日期时间 - 本地24小时格式

我可以设置使用ngMOdelOptions的时区为UTC但是时间继续显示AM/PM

感谢

+0

这可能与AngularJS无关;它使用浏览器的[input type =“datetime-local”](https://www.w3.org/TR/html-markup/input.datetime-local.html)的实现,它不允许格式化。 –

+0

是的,不幸的是,谢谢你的回复 – user6723829

回答

0
+0

嗨,感谢您的回复 但我恐怕不是这样,我确定绑定,我的问题是有关这个角度组件: <输入类型=“datetime-local” name =“startTime” ng-change =“$ ctrl.search()” ng-model =“$ ctrl.startTime” ng-model-options =“{timezone:'UTC' }” 步=‘1’ 需要/> 总是显示AM/PM格式,我得到了与NG-模型选项 解决了时区,但我不知道如何解决的24个小时格式 – user6723829

+0

@使用r6723829你能解决这个问题 – Bhavjot

相关问题