浏览代码

Fix Can't set a Due Date that has a leading zero in time, errors with invalid time.

Thanks to C0rn3j and xet7 !

Fixes #5395
Lauri Ojansivu 1 年之前
父节点
当前提交
9cebee7347
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      client/lib/datepicker.js

+ 3 - 2
client/lib/datepicker.js

@@ -6,10 +6,11 @@ import moment from 'moment/min/moment-with-locales';
 function adjustedTimeFormat() {
   return moment
     .localeData()
-    .longDateFormat('LT')
-    .replace(/HH/i, 'H');
+    .longDateFormat('LT');
 }
 
+//   .replace(/HH/i, 'H');
+
 export class DatePicker extends BlazeComponent {
   template() {
     return 'datepicker';