Skip to content

Commit

Permalink
fix: set schedule time to 1600UTC for Past checks (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
AshishYelekar authored Aug 10, 2023
1 parent c04ec46 commit a1a9b2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ async function getPageData(spoofDate?: string) {
const featuredPartner = schedule[today] || schedule[Object.keys(schedule)[0]]

const tabs: TabsComponentProps = Object.keys(schedule).reduce((acc, date) => {
const comparison = compareAsc(now, new Date(date).getTime())
const scheduleDate = new Date(date)
scheduleDate.setUTCHours(16)

const comparison = compareAsc(now, scheduleDate.getTime())
const partner = schedule[date]

if (comparison === 0 || typeof partner === 'undefined') {
Expand Down

0 comments on commit a1a9b2c

Please sign in to comment.