mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Merge pull request #41873 from nextcloud/backport/41703/stable28
[stable28] fix(dav): Convert dates without tz drift
This commit is contained in:
commit
c967da3b56
4 changed files with 7 additions and 7 deletions
|
|
@ -177,7 +177,7 @@ class OutOfOfficeListener implements IEventListener {
|
|||
->setTime(0, 0);
|
||||
$end = (new DateTimeImmutable())
|
||||
->setTimestamp($data->getEndDate())
|
||||
->modify('+ 2 days')
|
||||
->modify('+ 1 days')
|
||||
->setTime(0, 0);
|
||||
$vCalendar = new VCalendar();
|
||||
$vCalendar->add('VEVENT', [
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@
|
|||
* @return {string} 'YYYY-MM-DD'
|
||||
*/
|
||||
export function formatDateAsYMD(date) {
|
||||
const year = date.getUTCFullYear()
|
||||
const month = (date.getUTCMonth() + 1).toString().padStart(2, '0')
|
||||
const day = date.getUTCDate().toString().padStart(2, '0')
|
||||
const year = date.getFullYear()
|
||||
const month = (date.getMonth() + 1).toString().padStart(2, '0')
|
||||
const day = date.getDate().toString().padStart(2, '0')
|
||||
return `${year}-${month}-${day}`
|
||||
}
|
||||
|
|
|
|||
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