-
Notifications
You must be signed in to change notification settings - Fork 7
Add timezone support for booking date parsing in BrndFeedType #333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
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]>
|
|
||
| private function parseBrndBooking(array $booking): array | ||
| { | ||
| $tz = new \DateTimeZone(self::BRND_API_TIMEZONE); |
There was a problem hiding this comment.
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';
Link to ticket
Fixes #327
Description
Use the Europe/Copenhagen timezone when parsing dates and times.