From 076368d2630478e1f5859e66319f72885582c6b0 Mon Sep 17 00:00:00 2001 From: Pavan Kumar Date: Fri, 2 Jan 2026 12:03:28 +0530 Subject: [PATCH] feat: Extend registration and problem statement deadlines to Jan 2nd 3PM --- src/app/profile/page.tsx | 4 ++-- src/app/register/page.tsx | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) 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) {