@d-skora opened this issue on October 21st 2014

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 https://github.com/piwik/piwik/pull/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.

@mattab commented on October 21st 2014

@d-skora thanks for report. Maybe you can manage to add a unit test that fails showcasing the bug? so far we cannot reproduce an issue

Powered by GitHub Issue Mirror