MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-MyCalendar: Showing wrong dates (days one day in the past)?

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    10 Posts 5 Posters 4.6k Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      j.e.f.f Project Sponsor Module Developer @Medo
      last edited by

      @medo Do you have the same issue using the default calendar module? My module uses the same fetching mechanism behind the scenes as the default calendar module. It’s only a different display style.

      MedoM 1 Reply Last reply Reply Quote 0
      • MedoM Offline
        Medo @j.e.f.f
        last edited by

        @j-e-f-f said in MMM-MyCalendar: Showing wrong dates (days one day in the past)?:

        @medo Do you have the same issue using the default calendar module? My module uses the same fetching mechanism behind the scenes as the default calendar module. It’s only a different display style.

        Yes, with standard calendar module the same issues occur…

        1 Reply Last reply Reply Quote 0
        • D Offline
          Detto65
          last edited by yawns

          had the same issue, it shows you the end of the event, usually because its an all day event.
          here is my config:
          just added the option showEnd: false
          and date and time formats according to moments.js

           module: "calendar",
                                  header: "Calendar",
                                  position: "top_center",
                                  config: {
                                          maximumEntries: 10,
                                          maximumNumberOfDays: 32,
                                          dateFormat: 'D MMMM - H:mm',
                                          fullDayEventDateFormat: 'D MMMM',
                                          timeFormat: 'absolute',
                                          showEnd: false,
                                          urgency: 0,
                                          getRelative: 0,
                                          calendars: [
          etc...
          
          MedoM 1 Reply Last reply Reply Quote 0
          • MedoM Offline
            Medo @Detto65
            last edited by Medo

            @detto65 said in MMM-MyCalendar: Showing wrong dates (days one day in the past)?:

            had the same issue, it shows you the end of the event, usually because its an all day event.
            …

            Thanks detto65! I tried your suggestions for the code changes…
            As i do not have a wrong date in my calendar list at the moment, i will report if the changes solved my problem (when or if a wrong date appears or not).

            But i do have a last question:

            I added “showEnd: false”, but left in my configuration these two entries untouched: "timeFormat: “HH:mm [Uhr]” and "dateFormat: “dddd” (as these two entries suit my needs a little bit better).

            Is the entry “showEnd: false” enough to solve my problem or do i have to alter the both stated above (time and dateFormat) also - according to your alterations? What do you think?

            D MedoM 2 Replies Last reply Reply Quote 0
            • D Offline
              Detto65 @Medo
              last edited by Detto65

              @medo showEnd:false should do the trick,
              i only used de dateformats to show the dates in a more readable format.

              1 Reply Last reply Reply Quote 0
              • L Offline
                lazyboy0284
                last edited by

                I am having a similar but yet different issue.
                I noticed that one of my several calendars was showing activities one day early. I added new events for testing, and they show on the correct day, but the old events show a day off still.

                The green events come from the same calendar. The test events show on the right date in MM, but you can see that the Daycare event shows on the wrong date. I tried the no end “fix”, but that didn’t fix things. I checked my Pi and the calendar timezones and locations, and they all match (US, EN, Chicago). Are the events cached and can the cache be cleared? Any other debugging options that I can be helped with?

                0_1541340795690_GCal - Right dates.JPG

                0_1541340799163_MM - Wrong dates.JPG

                Everything worked fine up until a day or two ago, and I’m not sure what changed.

                Thank you in advance for the help.

                L 1 Reply Last reply Reply Quote 0
                • L Offline
                  lazyboy0284 @lazyboy0284
                  last edited by

                  I think I fixed my issue. I decided to start over (saved my config.js, but wiped everything else), and noticed things seemed fine, except for one calendar. I changed the ordinal date as others have recommended to fix the issue with events earlier than 1970, and saw the issue come back. I changed the date back to 1970, and the issue went away. So ultimately I deleted all calendar items from before 1970 to fix my issue.

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    DeToasty
                    last edited by

                    I have a similar problem. My calender seems to be broken. Holidays and my own appointments where displayed 2-3 days earlier. I dont know how to solve this problem.

                    1 Reply Last reply Reply Quote 0
                    • MedoM Offline
                      Medo @Medo
                      last edited by Medo

                      @medo said in MMM-MyCalendar: Showing wrong dates (days one day in the past)?:

                      @detto65 said in MMM-MyCalendar: Showing wrong dates (days one day in the past)?:

                      had the same issue, it shows you the end of the event, usually because its an all day event.
                      …
                      @medo showEnd:false should do the trick,
                      i only used de dateformats to show the dates in a more readable format.

                      It seems like this has solved my problem. No wrong dates since weeks… Thanks a lot!

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy