Set proper resolution to last week period

To avoid truncation. This is a partial backport from #593 pull request to master.