I implemented and tested to proposed change by Thomas Mortagne https://github.com/xwiki-contrib/application-mocca-calendar/pull/40