Regression fix and fix for sunday as first day in week not working with
week resolution.