Closed
Description
Platform: Raspberry Pi 3 (browser/Electron version agnostic)
Node Version: 16.16.0
MagicMirror² Version: 2.20.0
Description: Calendar shows a '. ' after the year in repeatingCountTitle
Steps to Reproduce: Load a calendar with repeating events. e.g. Joe's birthday, with a start date seven years ago, that repeats yearly.
Expected Results: "Joe's Birthday, 7 years"
Actual Results: "Joe's Birthday, 7. years"
Configuration: see attached config.zip
Additional Notes: The fix is simple.
Change line 265 in calendar.js
from: repeatingCountTitle = ", " + yearDiff + ". " + repeatingCountTitle;
to: repeatingCountTitle = ", " + yearDiff + repeatingCountTitle;
In cases where puncutation is desired after yearDiff, the config file can simply add it in the repeatingCountTitle.