Skip to content

Conversation

@agnetemoos
Copy link
Contributor

Link to ticket

Fixes #327

Description

Use the Europe/Copenhagen timezone when parsing dates and times.

@agnetemoos agnetemoos requested review from tuj and removed request for tuj November 25, 2025 12:35
@agnetemoos agnetemoos requested a review from tuj November 25, 2025 12:59
@tuj tuj added the bug Something isn't working label Nov 26, 2025
@agnetemoos
Copy link
Contributor Author

BRND is a system that is sold exclusively to Danish municipalities. It is an IT system built around Foreningsloven and the rules for "foreningsrefusion". We do not have the ability to configure the time zone.

That is a fine idea. I just dont have time to do it before thursday or friday next week.

Co-authored-by: Troels Ugilt Jensen <[email protected]>
@tuj tuj mentioned this pull request Dec 4, 2025

private function parseBrndBooking(array $booking): array
{
$tz = new \DateTimeZone(self::BRND_API_TIMEZONE);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to manually add this constant to the top of the class, for the code to work:

/* BRND api datetime values are always given as 'Europe/Copenhagen' */
private const string BRND_API_TIMEZONE = 'Europe/Copenhagen';

@tuj tuj merged commit cc55346 into develop Dec 5, 2025
12 of 13 checks passed
@tuj tuj deleted the feature/327-skewed-times-in-bookings branch December 5, 2025 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BRND: Tidspunkter vises forskudt med en time

3 participants