MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    (solved)Calendar Dates - Problematic behaviour since 2.18

    Troubleshooting
    calendar
    2
    7
    186
    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.
    • O
      OberfragGER last edited by OberfragGER

      Moin,

      ich habe soeben auf 2.18 upgegraded. Im default calender Modul habe ich ein paar Kalender konfiguert. Leider werden die Daten unterschiedlich formatiert. Warum das denn bzw. wie kann ich das anpassen?

      Recently i updatet to 2.18. Since then the different confgured calendars in the default calendar muduls are showing a different time format. Pretty odd.

      bf4d5eee-94dc-46bf-8985-fc3c2f54f295-image.png

      Gewünschte Formatierung wie unten “25. Januar”. Das kommt aus meinem persönlichen Google-Kalender. Die beiden Einträge darüber sind ein extra Google-Müllkalender (nicht Bestandteil des eigenen Kalenders, aber öffentlich.)

      I want the dates shown like “25. Januar” and not Jan. 25… The right entry is from my personal google calendar, the others are from an extra Google-Calendar and from the ‘MMM-GoogleBirthdaysProvider’-Module. I 2.17 everything was fine!

      Auch die Einträge aus ‘MMM-GoogleBirthdaysProvider’ werden im amerikanischen Format dargestellt (sieht man gerade nicht, da der 10. EIntrag im Screenshot zu dunkel ist).

      Wie bekomme ich da die Formatierung hin? Auch der Versuch nochmal im eigentlichen Kalendereintrag das Datum anzupassen schlägt fehl.

          {
            module: 'calendar',
            header: 'Kalender',
            position: 'top_left',
            config: {
      		dateFormat: 'D.MMMM',
      		displayRepeatingCountTitle: true,
      		colored: true,
      		coloredSymbolOnly: true,
              calendars: [
      		  {
      

      Hier nochmal das Beispiel innerhalb des eigentlichen Kalendereintrags.
      Here the example in one calendar entry. I hoped that this will force the right dateFormat.

      			color: '#DF0F32',
      			maximumEntries: 5,
      			dateFormat: 'D.MMMM',
      		  },
      
      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @OberfragGER last edited by

        @oberfragger

        I also added an extra line to the wrong calendar-entry. How can i change that!

        I don’t understand.

        u mean in the post here?

        just edit your post to fix it

        Sam

        Create a working config
        How to add modules

        O 1 Reply Last reply Reply Quote 0
        • O
          OberfragGER @sdetweil last edited by OberfragGER

          @sdetweil Hi @sdetweil , thx for your reply.

          I mean, i added the dateFormat to every single calendar. But i doesnt work too.

              {
                module: 'calendar',
                header: 'Kalender',
                position: 'top_left',
                config: {
          		dateFormat: 'D.MMMM',
          		displayRepeatingCountTitle: true,
          		colored: true,
          		coloredSymbolOnly: true,
                  calendars: [
          		  {
          			symbol: 'calendar',
                      url: 'https://www.officeholidays.com/ics-local-name/germany',
          			color: '#fdffe3'
                    },
          		  {
          			symbol: 'trash-alt',
          
          			url: 'https://calendar.google.com/calendar/ical/XXXXXXXXX%40import.calendar.google.com/public/basic.ics',
          			color: '#DF0F32',
                                  dateFormat: 'D.MMMM',
          			maximumEntries: 5
          		  },
          		  {
                      url: 'https://calendar.google.com/calendar/ical/oberfragger%40gmail.com/private-XXXXXXXXX/basic.ics',
          			symbol: 'calendar-check',
          			color: '#7cd2fc'
                    },
          		  {
           			url: 'http://localhost:8080/mmm-googlebirthdaysprovider',
          			repeatingCountTitle: 'Geburtstag',
          			dateFormat: 'D.MMMM',
          			symbol: 'birthday-cake',
          			color: '#F5DA81'
           		  },  
                    {
                      symbol: 'flag-checkered',
                      url: 'http://localhost:8080/MMM-Formula1/schedule.ics',
          			color: '#b8e9fc'
                    }
                  ],
          		customEvents: [
          		  {
          			keyword: 'tsfeiertag',
          			color: '#fcb8d8',
          			symbol: 'gifts'
          		  },
          		  {
          			keyword: 'Könige',
          			color: '#fff2cc',
          			symbol: 'crown'
          		  },
          		  {
          			keyword: 'gelbe',
          			color: '#fff133',
          			symbol: 'recycle'
          		  },
          		  {
          			keyword: 'blaue',
          			color: '#335cff',
          			symbol: 'newspaper'
          		  },
          		  {
          			keyword: 'bäume',
          			color: '#06a929',
          			symbol: 'tree'
          		  },
          		  {
          			keyword: 'oster',
          			color: '#adf542',
          			symbol: 'egg'
          		  }
          		]
                }
              },
          

          In 2.17 it looked so:
          fe3a0afe-73b2-4fce-891f-46f7b5c08809-image.png

          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @OberfragGER last edited by

            @oberfragger looking thru the code, date format is only used if timeFormat is set to ‘absolute’ or ‘dateheaders’

            by default it is ‘relative’

            Sam

            Create a working config
            How to add modules

            O 1 Reply Last reply Reply Quote 0
            • O
              OberfragGER @sdetweil last edited by OberfragGER

              @sdetweil I found the problem!
              Its about whole day events!
              c495a7cc-6576-479e-8a5d-7c64748ddd91-image.png

              Now you see both events are from the same (google) calendar.
              “Test - dayevent” is for the whole day.
              “Zahnarzt” is just for a timeslot.

              In the 2.18 releasenotes from @MichMich is mentioned, that “Fixed Calendar showEnd and Full Date overlay (#2629).” Maybe this or another change caused this issue.

              Did you know, where i can add this issue to 2.18??? Whith dateFormat: ‘D.MMMM’, both entries should look in the same format.

              This should moved to Troubleshooting (not modules/troubleshooting).

              S 1 Reply Last reply Reply Quote 0
              • S
                sdetweil @OberfragGER last edited by

                @oberfragger use fullDayEventDateFormat

                Sam

                Create a working config
                How to add modules

                O 1 Reply Last reply Reply Quote 0
                • O
                  OberfragGER @sdetweil last edited by

                  @sdetweil said in Calendar Dates - Problematic behaviour since 2.18:

                  fullDayEventDateFormat

                  Thanks a lot, again @sdetweil .

                  fullDayEventDateFormat: 'D.MMMM',
                  

                  did the job!

                  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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy