While Clicking Email Reports option i got following error "DateTimeZone::__construct(): Unknown or bad timezone (UTC+5.5)" #10639
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
Major
Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Regression
Indicates a feature used to work in a certain way but it no longer does even though it should.
Milestone
As reported by email:
I had fixed a similar issue in the update file directly: https://github.com/piwik/piwik/blob/b27cbb96da5a6fd1f7ef1ef90c5c09ca1b875613/core/Updates/2.16.3-b3.php
but didn't notice this code was also duplicated in https://github.com/piwik/piwik/blob/a8f682a6039e9b765e248c6be531cce54a7903d1/plugins/ScheduledReports/Controller.php
Problem is that PHP datetime does not recognise the UTC+x notation.
@sgiehl we need to use our Date class for this to make sure it's all working and tested. Could you please investigate this, as we'll need to patch to 2.16.4 ASAP since it breaks scheduled reports for any user where the site timezone is using UTC+x UTC-y
Would be nice to add a test as well ;)
The text was updated successfully, but these errors were encountered: