From 3ae683307da03a46b400d8d18c06a4a63c763799 Mon Sep 17 00:00:00 2001 From: aignatov-bio <47317017+aignatov-bio@users.noreply.github.com> Date: Wed, 23 Feb 2022 09:24:11 +0100 Subject: [PATCH] Fix time filter [SCI-6575] (#3886) Co-authored-by: Anton --- app/javascript/vue/shared/date_time_picker.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/vue/shared/date_time_picker.vue b/app/javascript/vue/shared/date_time_picker.vue index d4449a974..3b827db45 100644 --- a/app/javascript/vue/shared/date_time_picker.vue +++ b/app/javascript/vue/shared/date_time_picker.vue @@ -48,8 +48,8 @@ isValidTime() { return /^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/.test(this.time); }, - isValidDate() { - return (this.date instanceof Date) && !isNaN(this.date.getTime()); + isValidDate(date) { + return (date instanceof Date) && !isNaN(date.getTime()); }, recalcTimestamp() { let date = this.timeOnly ? new Date() : this.date;