Store actual System TZ (not Ansible's ambiguous TZ abbreviations) into fpm/php.ini & cli/php.ini — for Matomo etc #3453
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@cwivagg this PR should finally fix the Time Zone in Matomo (as well as providing better TZ hygiene for all of IIAB's PHP-based apps). LMK please if you discover quirks on VirtualBox or anywhere!
It works by bypassing Ansible's unhelpful TZ abbreviation mechanisms {
ansible_date_time.tz
,ansible_date_time.tz_dst
,ansible_date_time.tz_offset
} and instead using Linux's TZ directly (e.g.America/New_York
, from symlink /etc/localtime and/or text file /etc/timezone — or the absence of both — which in fact means time zoneUTC
).Thanks to the very hard work from many. Including @jvonau, @cwivagg and others..
FYI this PR also documents, clarifies and cleans up, e.g.:
This PR was tested quite extensively on Debian 12's latest daily. It builds on: