Fix time filter [SCI-6575] (#3886)

Co-authored-by: Anton <anton@scinote.net>
This commit is contained in:
aignatov-bio 2022-02-23 09:24:11 +01:00 committed by GitHub
parent dd5939e89d
commit 3ae683307d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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