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
This commit is contained in:
Lauri Ojansivu 2024-05-06 01:30:49 +03:00
parent f311359373
commit 9cebee7347

View file

@ -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';