This commit is contained in:
2025-11-04 02:40:32 +01:00
parent 7995daa6e5
commit abbefd0e80
2 changed files with 2 additions and 3 deletions

View File

@@ -331,10 +331,9 @@ async function submitSteps() {
} }
// Validate date is not after October 31, 2025 // Validate date is not after October 31, 2025
const contestEndDate = new Date('2025-10-31'); const contestEndDate = '2025-10-31';
const selectedDate = new Date(date + 'T00:00:00');
if (selectedDate > contestEndDate) { if (date > contestEndDate) {
showMessage(messageDiv, 'Contest ended on October 31, 2025. Cannot enter steps after this date.', 'error'); showMessage(messageDiv, 'Contest ended on October 31, 2025. Cannot enter steps after this date.', 'error');
return; return;
} }

Binary file not shown.