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.

    Change the way calendar presents day and time

    Scheduled Pinned Locked Moved Troubleshooting
    3 Posts 2 Posters 640 Views 2 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.
    • M Offline
      MM-Hans
      last edited by MM-Hans

      After a new installation something goes wrong with the standard calendar module that I use with Apple calendar. As you can see in the photo, there are two different ways to present the date, namely “Wednesday at 00:00” and “27-01-2021”. I would like each calendar note to be displayed as “dd-mm-yy” or “dd-mm”.

      Unfortunately, I cannot do that, not even by changing the dateFormat in the config.js file. Can someone tell me how to change this so all dates are presented the same way?

      MM.png

      1 Reply Last reply Reply Quote 0
      • BKeyportB Offline
        BKeyport Module Developer
        last edited by

        If I’m remembering correct (I don’t use the module anymore), it’s having to do with absolute dates. All three of these need to be set…

        // Force Absolute to Absolute all the time, michmich *really* hates solid dates, apparently. 
        timeformat: "absolute",
        getRelative: 0,
        urgency: 0 ,
        

        The "E" in "Javascript" stands for "Easy"

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          MM-Hans @BKeyport
          last edited by

          @BKeyport Thanks for your suggestion! I now use the code below which results in what is shown in the image. Exactly what I wanted :-)

          MM.png

          			config: {
                                          fade: false,
                                          maximumEntries: 7,
                                          displaySymbol: false,
             				timeFormat: 'absolute',
             				dateFormat: 'ddd D MMM',
            				fullDayEventDateFormat: 'dd DD-MM',
           				urgency: 0,
          				calendars: [
          
          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