External API returns negative Event duration

Steps to reproduce

Steps to reproduce:
1. Add a single scheduled event
2. Request Event via the `/api/events` endpoint

Actual Results:
The duration attribute is a negative integer.

Expected Results:
The duration attribute should be a positive integer.

This is a bug introduced in the r/4.x branch. The calculation of the Duration has been modified from EndTime - StartTime to StartTime - EndTime, which makes no sense and leads to negative values.

Assignee

Unassigned

Reporter

Jan Koppe

Severity

Incorrectly Functioning Without Workaround

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Major
Configure