Skip to content

Calculating start of semester correctly #421

Closed
@viktorcsimma

Description

@viktorcsimma

Today, we've received a report that the evaluation form has closed on 31st January instead of 3rd February. I could reopen it only by setting send_status_statement_request in the event_triggers table from 7th May to 7th October.

My suspect is the isEvaluationAvailable function in SemesterEvaluationController. Particularly this point:

public static function isEvaluationAvailable(): bool
{
    $available = EventTrigger::find(EventTrigger::SEMESTER_EVALUATION_AVAILABLE)->date;
    $deadline = self::deadline();

    return now() <= $deadline && $available >= Semester::next()->getStartDate();
}

I'll check this out.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions