Calendar - Events XML dates are formatted using Week Year instead of Year causing events in the first and last weeks of the year to have incorrect dates #7
The events-xml Format that drives the main calendar uses YYYY which is a "Week Year" in Java to format dates:
A week year is in sync with a WEEK_OF_YEAR cycle. All weeks between the first and last weeks (inclusive) have the same week year value. Therefore, the first and last days of a week year may have different calendar year values.
This can cause events in the first and last weeks of the year to have incorrect dates. (Thanks to @LadySnowy for spotting this one.)
Workaround
Edit the _cms/formats/outputs/xml/events-xml Format and change any reference to YYYY when formatting dates to yyyy. Example:
Description
The
events-xml
Format that drives the main calendar usesYYYY
which is a "Week Year" in Java to format dates:This can cause events in the first and last weeks of the year to have incorrect dates. (Thanks to @LadySnowy for spotting this one.)
Workaround
Edit the
_cms/formats/outputs/xml/events-xml
Format and change any reference toYYYY
when formatting dates toyyyy
. Example:Before:
After: