Skip to content

Commit

Permalink
fixed time to 8am
Browse files Browse the repository at this point in the history
  • Loading branch information
danreale committed Oct 3, 2024
1 parent 23d1165 commit aa84083
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function Index() {
</p>
<p className="italic">
<span className="italic">
Data is updated at 7:30 am EST Monday-Friday*
Data is updated at 8:00 am EST Monday-Friday*
</span>
</p>
<p>
Expand Down
2 changes: 1 addition & 1 deletion app/routes/today._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function Today() {
<p className="text-center font-semibold grid justify-center">
<span className="italic">
The current time is {currentTime.toFormat("h:mm a")}. Please check
back after 7:30 am EST for updated data.*
back after 8:00 am EST for updated data.*
</span>
</p>
)}
Expand Down
4 changes: 2 additions & 2 deletions app/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ export const isBetweenMidnightAndSeven = () => {

// Define the start and end times
const start = currentTime.startOf("day"); // 12:00 AM
const end = start.plus({ hours: 7, minutes: 30 }); // 7:30 AM
const end = start.plus({ hours: 8 }); // 8:00 AM // Did some testing and the data was there around 745/750 so doing 8 am to be safe

// Check if the current time is between 12:00 AM and 7:00 AM
// Check if the current time is between 12:00 AM and 8:00 AM
const isBetween = currentTime >= start && currentTime < end;
return isBetween;
};

0 comments on commit aa84083

Please sign in to comment.