mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 21:21:50 +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() {
|
isValidTime() {
|
||||||
return /^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/.test(this.time);
|
return /^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/.test(this.time);
|
||||||
},
|
},
|
||||||
isValidDate() {
|
isValidDate(date) {
|
||||||
return (this.date instanceof Date) && !isNaN(this.date.getTime());
|
return (date instanceof Date) && !isNaN(date.getTime());
|
||||||
},
|
},
|
||||||
recalcTimestamp() {
|
recalcTimestamp() {
|
||||||
let date = this.timeOnly ? new Date() : this.date;
|
let date = this.timeOnly ? new Date() : this.date;
|
||||||
|
|
Loading…
Reference in a new issue