diff --git a/src/Utils/Schedule/Week.hs b/src/Utils/Schedule/Week.hs index fd218a9e8..e7eddf686 100644 --- a/src/Utils/Schedule/Week.hs +++ b/src/Utils/Schedule/Week.hs @@ -111,7 +111,7 @@ weekSchedule uid dayOffset = do -- TODO: Internationalize default week start (and/or make configurable) -- TODO: auto-hide saturday and sunday (if there are no events scheduled)? week :: [Day] - week = go $ fromMaybe 0 dayOffset `addDays` utctDay now + week = go dayNowOffset where go day | dayOfWeek day == firstDay = [day .. toEnum (fromEnum day + 6)] | otherwise = go $ pred day