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
pull/5404/head
Lauri Ojansivu 1 year ago
parent f311359373
commit 9cebee7347
  1. 5
      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';

Loading…
Cancel
Save