This PR changes how the week name is displayed in the column header by shortening it for all reports, and omitting the year if all column are within the same year.
We rename showPeriodMonthAbbrev to showPeriodAbbrev as it's now used for weeks too, so not strictly just months.
It adds the following method
showPeriodAbbrev (WeekPeriod b) = T.pack $ formatTime defaultTimeLocale "W%V" b
and changes the multi-year naming:
- showPeriod (WeekPeriod b) = T.pack $ formatTime defaultTimeLocale "%FW%V" b
+ showPeriod (WeekPeriod b) = T.pack $ formatTime defaultTimeLocale "%0Y-W%V" b
This PR changes how the week name is displayed in the column header by shortening it for all reports, and omitting the year if all column are within the same year.
We rename
showPeriodMonthAbbrev
toshowPeriodAbbrev
as it's now used for weeks too, so not strictly just months.It adds the following method
and changes the multi-year naming: