initial proposition of fixing http://dev.piwik.org/trac/ticket/5356

This clearly also needs unit tests failing on current code state, and passing after fixes. 
Could you please give me a hint where such test should be placed ?

Also maybe Period/Factory could use some review regarding other possible timezone issues ?