rebased on 3.0 branch.
see #8282 for more details
@sgiehl could you confirm this nice PR fixes the issue reported by couple users in the forum http://forum.piwik.org/read.php?2,128505
@mattab Yes, that fixes those date issues. But that should already be fixed in latest beta of 2.x
@sgiehl this PR was merged in 3.0.0 branch - was the issue reported in forum fixed in another PR?
that was fixed in fb530a11822949e97e9cd0597f667fc2e5f3cf68