Skip to content

Commit

Permalink
enh: move to 8am
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Aug 9, 2023
1 parent ce3119e commit ffd68a8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/files_reminders/src/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand All @@ -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')
Expand All @@ -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()
Expand All @@ -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
},
Expand Down

0 comments on commit ffd68a8

Please sign in to comment.