diff --git a/src/app/profile/page.tsx b/src/app/profile/page.tsx index 91d9b8a..399e752 100644 --- a/src/app/profile/page.tsx +++ b/src/app/profile/page.tsx @@ -37,8 +37,8 @@ export default function Profile() { const [joinTeamCode, setJoinTeamCode] = useState(""); const [joining, setJoining] = useState(false); - // Check if editing is allowed (until Jan 1st, 2026) - const isEditingAllowed = new Date() < new Date('2026-01-02T09:00:00'); + // Check if editing is allowed (until Jan 2nd, 3PM 2026) + const isEditingAllowed = new Date() < new Date('2026-01-02T15:00:00'); useEffect(() => { if (user == null || user === undefined) { diff --git a/src/app/register/page.tsx b/src/app/register/page.tsx index 4836dc3..fc71611 100644 --- a/src/app/register/page.tsx +++ b/src/app/register/page.tsx @@ -33,12 +33,23 @@ const MyForm: React.FC = () => { const [popUp, setPopUp] = useState(false); const [agreedToRules, setAgreedToRules] = useState(false); const [isCompleteRegistration, setIsCompleteRegistration] = useState(false); + + // Check if registration is still open (until Jan 2nd, 3PM 2026) + const isRegistrationOpen = new Date() < new Date('2026-01-02T15:00:00'); + useEffect(() => { if (user === null) { alert("Please login to register for Techsprint"); window.location.href = "/"; return; } + + // Check registration deadline + if (!isRegistrationOpen) { + alert("Registration deadline has passed. Registration closed on January 2nd, 2026 at 3PM."); + window.location.href = "/"; + return; + } GetUserProgress(user.uid).then((response) => { console.log(response); if (response === Progress.noApplication) {