mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
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:
parent
f311359373
commit
9cebee7347
1 changed files with 3 additions and 2 deletions
|
|
@ -6,10 +6,11 @@ import moment from 'moment/min/moment-with-locales';
|
||||||
function adjustedTimeFormat() {
|
function adjustedTimeFormat() {
|
||||||
return moment
|
return moment
|
||||||
.localeData()
|
.localeData()
|
||||||
.longDateFormat('LT')
|
.longDateFormat('LT');
|
||||||
.replace(/HH/i, 'H');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// .replace(/HH/i, 'H');
|
||||||
|
|
||||||
export class DatePicker extends BlazeComponent {
|
export class DatePicker extends BlazeComponent {
|
||||||
template() {
|
template() {
|
||||||
return 'datepicker';
|
return 'datepicker';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue