diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-11-23 19:15:47 +0100 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2023-11-29 19:49:42 +0100 |
commit | ac782a161933a3461542353b610a5e25f89cd92c (patch) | |
tree | 2d40f33f8e3c298ed25055f36d9a9d53422bb9f4 /apps/dav/src | |
parent | 64c722139019ba0dc37e854ec593e3ead6a94d91 (diff) | |
download | nextcloud-server-ac782a161933a3461542353b610a5e25f89cd92c.tar.gz nextcloud-server-ac782a161933a3461542353b610a5e25f89cd92c.zip |
fix(dav): Convert dates without tz drift
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/src')
-rw-r--r-- | apps/dav/src/utils/date.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/src/utils/date.js b/apps/dav/src/utils/date.js index 2ba5ba926f6..1b67e05085b 100644 --- a/apps/dav/src/utils/date.js +++ b/apps/dav/src/utils/date.js @@ -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}` } |