Skip to content

Commit

Permalink
update website to support earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
CooperW824 committed Oct 22, 2024
1 parent 0f1f2ab commit ae1e1cb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
4 changes: 2 additions & 2 deletions components/title-components/timer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { type DeltaTime } from "@/utils/timer";
import { calculateDeltaTime } from "@/utils/timer";

export default function Timer() {
const hackathonStart = useMemo(() => new Date(1731171600000), []); // November 9, 2024 12:00:00 PM
const hackathonEnd = useMemo(() => new Date(1731258000000), []); // November 10, 2024 12:00:00 PM
const hackathonStart = useMemo(() => new Date(1731168000000), []); // November 9, 2024 11:00:00 AM
const hackathonEnd = useMemo(() => new Date(1731254400000), []); // November 10, 2024 11:00:00 AM

const [DeltaTime, setDeltaTime] = useState<DeltaTime>(
Date.now() > hackathonStart.getTime()
Expand Down
31 changes: 16 additions & 15 deletions data/schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,28 @@ export type Event = {
visible: boolean;
};

export const SATURDAY_START = 1731164400000;
export const SATURDAY_START = 1731160800000;
export const SATURDAY_END = 1731214800000 - 1;

export const SUNDAY_START = 1731214800000;
export const SUNDAY_END = 1731286800000;

export const saturdayTimes = [
{ str: "10:00 AM", unix: SATURDAY_START },
{ str: "11:00 AM", unix: SATURDAY_START + 3600000 * 1 },
{ str: "12:00 PM", unix: SATURDAY_START + 3600000 * 2 },
{ str: "1:00 PM", unix: SATURDAY_START + 3600000 * 3 },
{ str: "2:00 PM", unix: SATURDAY_START + 3600000 * 4 },
{ str: "3:00 PM", unix: SATURDAY_START + 3600000 * 5 },
{ str: "4:00 PM", unix: SATURDAY_START + 3600000 * 6 },
{ str: "5:00 PM", unix: SATURDAY_START + 3600000 * 7 },
{ str: "6:00 PM", unix: SATURDAY_START + 3600000 * 8 },
{ str: "7:00 PM", unix: SATURDAY_START + 3600000 * 9 },
{ str: "8:00 PM", unix: SATURDAY_START + 3600000 * 10 },
{ str: "9:00 PM", unix: SATURDAY_START + 3600000 * 11 },
{ str: "10:00 PM", unix: SATURDAY_START + 3600000 * 12 },
{ str: "11:00 PM", unix: SATURDAY_START + 3600000 * 13 },
{ str: "9:00 AM", unix: SATURDAY_START },
{ str: "10:00 AM", unix: SATURDAY_START + 3600000 * 1 },
{ str: "11:00 AM", unix: SATURDAY_START + 3600000 * 2 },
{ str: "12:00 PM", unix: SATURDAY_START + 3600000 * 3 },
{ str: "1:00 PM", unix: SATURDAY_START + 3600000 * 4 },
{ str: "2:00 PM", unix: SATURDAY_START + 3600000 * 5 },
{ str: "3:00 PM", unix: SATURDAY_START + 3600000 * 6 },
{ str: "4:00 PM", unix: SATURDAY_START + 3600000 * 7 },
{ str: "5:00 PM", unix: SATURDAY_START + 3600000 * 8 },
{ str: "6:00 PM", unix: SATURDAY_START + 3600000 * 9 },
{ str: "7:00 PM", unix: SATURDAY_START + 3600000 * 10 },
{ str: "8:00 PM", unix: SATURDAY_START + 3600000 * 11 },
{ str: "9:00 PM", unix: SATURDAY_START + 3600000 * 12 },
{ str: "10:00 PM", unix: SATURDAY_START + 3600000 * 13 },
{ str: "11:00 PM", unix: SATURDAY_START + 3600000 * 14 },
];

export const sundayTimes = [
Expand Down

0 comments on commit ae1e1cb

Please sign in to comment.