mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #41967 from nextcloud/fix/dav/single-day-ooo-stable28
[stable28] fix(dav): Allow single-day out of office
This commit is contained in:
commit
6380a38de4
3 changed files with 10 additions and 4 deletions
|
|
@ -90,11 +90,17 @@ export default {
|
|||
* @return {boolean}
|
||||
*/
|
||||
valid() {
|
||||
// Translate the two date objects to midnight for an accurate comparison
|
||||
const firstDay = new Date(this.firstDay?.getTime())
|
||||
const lastDay = new Date(this.lastDay?.getTime())
|
||||
firstDay?.setHours(0, 0, 0, 0)
|
||||
lastDay?.setHours(0, 0, 0, 0)
|
||||
|
||||
return !!this.firstDay
|
||||
&& !!this.lastDay
|
||||
&& !!this.status
|
||||
&& !!this.message
|
||||
&& this.lastDay > this.firstDay
|
||||
&& lastDay >= firstDay
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
4
dist/dav-settings-personal-availability.js
vendored
4
dist/dav-settings-personal-availability.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue