Skip to content

Commit

Permalink
chore: wrapping in toUnix
Browse files Browse the repository at this point in the history
  • Loading branch information
albertocevallos committed Nov 15, 2023
1 parent 1974c3c commit c7091f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/timestamps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function get8AMUTCDate(date?: Date) {
const nextDate = new Date(today);
nextDate.setUTCDate(today.getUTCDate() + shiftDays);
nextDate.setUTCHours(8, 0, 0, 0); // Set the time to 8am UTC
return nextDate.getTime();
return toUnix(nextDate);
}

export function get24HrTimestamps(date?: Date): {
Expand Down

0 comments on commit c7091f9

Please sign in to comment.