mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 19:51:01 +08:00
Fix time filter [SCI-6575] (#3886)
Co-authored-by: Anton <anton@scinote.net>
This commit is contained in:
parent
dd5939e89d
commit
3ae683307d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue