Skip to content
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

Make time zone for slugs configurable #66

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

d-s-codappix
Copy link
Contributor

Slugs of dates are generated during import.
This might lead to confusion if the time zone differs from frontend. Therefore the time zone is now configurable to allow adjustments for the actual website.

A new interface TimeZoneProviderInterface is provided which can be re configured to a different implementation.

The default implementation will use TYPO3s SYS.phpTimeZone setting, with fall back to date_default_timezone_get() call. That way it should be useful for most systems out of the box.

Resolves: #11345

@d-s-codappix d-s-codappix self-assigned this Sep 9, 2024
@d-s-codappix d-s-codappix force-pushed the 11345-falsche-zeitzone-in-events-urls branch from eb995cb to 77d5579 Compare September 9, 2024 09:08
Slugs of dates are generated during import.
This might lead to confusion if the time zone differs from frontend.
Therefore the time zone is now configurable to allow adjustments for the
actual website.

A new interface `TimeZoneProviderInterface` is provided which can be re
configured to a different implementation.

The default implementation will use TYPO3s `SYS.phpTimeZone` setting,
with fall back to `date_default_timezone_get()` call.
That way it should be useful for most systems out of the box.

Resolves: #11345
@d-s-codappix d-s-codappix force-pushed the 11345-falsche-zeitzone-in-events-urls branch from 77d5579 to 6b17b82 Compare September 9, 2024 09:26
@d-s-codappix d-s-codappix requested a review from a team September 9, 2024 09:30
@d-s-codappix d-s-codappix merged commit 17fae72 into main Sep 10, 2024
12 checks passed
@d-s-codappix d-s-codappix deleted the 11345-falsche-zeitzone-in-events-urls branch September 10, 2024 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants