MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. pert.no.more
    P
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    pert.no.more

    @pert.no.more

    0
    Reputation
    296
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    pert.no.more Unfollow Follow

    Latest posts made by pert.no.more

    • RE: wrong age in calendar module

      for me it worked by replacing in line 129:

      new Date().getFullYear()

      with

      new Date(parseInt(event.startDate)).getFullYear()

      posted in Troubleshooting
      P
      pert.no.more
    • RE: wrong age in calendar module

      @chamaeleon82 Same here. There is a logical bug in the calculation of “yearDiff” in calendar.js line 129-130. It calculates “CurrentYear” - “FirstYear of event” instead “NextOccurrenceYear of event” - “FirstYear of event”. I’m not too familiar with js, but the fix should be something like yearDiff = event.startDate.getFullYear() - event.firstYear.

      posted in Troubleshooting
      P
      pert.no.more