diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-08-08 16:01:20 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-08-09 10:41:18 -0700 |
commit | ffd68a80fc5f44b7fa7b4a40a929d8bebb9d2bd3 (patch) | |
tree | e6c5dd27152c52bc255f19eb76e32d3acb0491f5 /apps/files_reminders/src | |
parent | ce3119ef078e9685b3a1b6a3148cfe473b01bebd (diff) | |
download | nextcloud-server-ffd68a80fc5f44b7fa7b4a40a929d8bebb9d2bd3.tar.gz nextcloud-server-ffd68a80fc5f44b7fa7b4a40a929d8bebb9d2bd3.zip |
enh: move to 8am
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files_reminders/src')
-rw-r--r-- | apps/files_reminders/src/shared/utils.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_reminders/src/shared/utils.ts b/apps/files_reminders/src/shared/utils.ts index f43f8da5a6d..5d223fe657d 100644 --- a/apps/files_reminders/src/shared/utils.ts +++ b/apps/files_reminders/src/shared/utils.ts @@ -44,7 +44,7 @@ export const getDateTime = (dateTime: DateTimePreset): Date => { const day = moment() .add(1, 'day') .startOf('day') - .add(9, 'hour') + .add(8, 'hour') .toDate() return day }, @@ -54,11 +54,11 @@ export const getDateTime = (dateTime: DateTimePreset): Date => { const saturday = moment() .startOf('isoWeek') .add(5, 'day') - .add(9, 'hour') + .add(8, 'hour') const sunday = moment() .startOf('isoWeek') .add(6, 'day') - .add(9, 'hour') + .add(8, 'hour') if (today.isSame(saturday, 'date')) { return saturday .add(1, 'day') @@ -69,7 +69,7 @@ export const getDateTime = (dateTime: DateTimePreset): Date => { .add(1, 'week') .startOf('isoWeek') .add(5, 'day') - .add(9, 'hour') + .add(8, 'hour') .toDate() } return saturday.toDate() @@ -79,7 +79,7 @@ export const getDateTime = (dateTime: DateTimePreset): Date => { const day = moment() .startOf('isoWeek') .add(1, 'week') - .add(9, 'hour') + .add(8, 'hour') .toDate() return day }, |