Skip to content

Commit

Permalink
Datum otevírání registrací
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolombooo committed Mar 5, 2024
1 parent ecd1b76 commit b515263
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Facades/SubjectRegistrationsManagerFacade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,13 @@ public async Task<DataFragmentResult<StudentWithSigningRuleListItemDto>> GetStud

private void VerifyRegistrationChangesAllowedToStudents()
{
if (timeService.GetCurrentDate() > new DateTime(2023, 3, 27))
if (timeService.GetCurrentDate() > new DateTime(2024, 3, 7))
{
throw new OperationFailedException("Registrace jsou uzavřeny, kontaktujte organizátory.");
}
else if (timeService.GetCurrentTime() < new DateTime(2023, 3, 20, 19, 0, 0))
else if (timeService.GetCurrentTime() < new DateTime(2024, 3, 7, 12, 0, 0))
{
throw new OperationFailedException("Registrace se otevírají 20.3. v 19:00.");
throw new OperationFailedException("Registrace se otevírají 7. 3. ve 12:00.");
}
}
}

0 comments on commit b515263

Please sign in to comment.