Range subperiods have timezones set only for relative dates #6492
Labels
Task
Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Milestone
There seems to be an issue in https://github.com/piwik/piwik/blob/2.8.1/core/Period/Range.php#L203
After discussions with @mgazdzik about #320 and the problem of testing if the fix is working correctly I were investigating why subperiods don't have a correct timestamp/timezone for a given range of time.
I found out that at this line https://github.com/piwik/piwik/blob/2.8.1/core/Period/Range.php#L203 we're ignoring setting a timestamp for dates that aren't relative.
@mgazdzik asked me to set up this issue as a start of discussion why we don't want to adjust timestamps for those dates.
The text was updated successfully, but these errors were encountered: