diff --git a/calendar/js/SidemenuDate.ts b/calendar/js/SidemenuDate.ts index e88bc3499c..b36a9dec6d 100644 --- a/calendar/js/SidemenuDate.ts +++ b/calendar/js/SidemenuDate.ts @@ -127,14 +127,14 @@ export class SidemenuDate extends Et2Date set_value(value) { - if(!value || value == 0 || value == "0" || typeof value !== "string") - { - return super.set_value(value); - } - if(value.length == 8) + if(typeof value !== "string" && value.length == 8) { super.set_value(parseDate(value, "Ymd")); } + else + { + super.set_value(value); + } }