fix incorrect computation of starting day

if first day of week was set to monday, events starting at sunday displayed incorrectly in week view