• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

absolute date in calendar module

Scheduled Pinned Locked Moved Troubleshooting
19 Posts 9 Posters 13.4k Views 9 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.
  • W Offline
    wered
    last edited by Sep 17, 2017, 1:57 AM

    I was running into the same issue with not being able to disable the relative days, My issue was that when something was set to “The day after tomorrow” it made the module far to wide and overwrote other modules(Im using an older low res screen). To fix this I edited the file at MagicMirror/modules/default/calendar/calendar.js and replaced line 237 with the entry below, I changed it to two days which is much shorter but you can change it to whatever you want.

    timeWrapper.innerHTML = this.capFirst(this.translate(“Two Days”));

    The line originally was.

    timeWrapper.innerHTML = this.capFirst(this.translate(“DAYAFTERTOMORROW”));

    1 Reply Last reply Reply Quote 0
    • M Offline
      MarkNygaard
      last edited by MarkNygaard Oct 5, 2019, 2:33 PM Oct 5, 2019, 1:09 PM

      Is it a big task to change so that it displays weekdays for the current week and then dates when the event is further away?

      So lets say it is Wednesday. The calendar would then display it like:
      Event Today
      Event Thursday
      Event Saturday
      Event Sunday
      Event Oct 9
      Event Oct 11
      …

      Edit: Can see that the urgency option takes x amount of days. Would be nice if the urgency function returns the days(Monday, Tuesday…) in stead of the amount of days away.

      1 Reply Last reply Reply Quote 0
      • A Offline
        Alex2020
        last edited by sdetweil Feb 7, 2020, 12:51 PM Feb 6, 2020, 5:53 PM

        E’ possibile impostare un simbolo diverso da un altro a secondo dell’evento?In caso la risposta fosse SI potreste dirmi come dovrei fare ?Grazie.

        english

        Is it possible to set a different symbol from another according to the event? If the answer was YES could you tell me how I should do it? Thanks.

        1 Reply Last reply Reply Quote 0
        • A Offline
          Alex2020
          last edited by sdetweil Feb 7, 2020, 12:51 PM Feb 7, 2020, 12:41 PM

          Come si fa a mettere un simbolo diverso per ogni giorno della settimana?Grazie.

          english

          How do you put a different symbol for each day of the week? Thanks.

          1 Reply Last reply Reply Quote 0
          • P Offline
            pablo_z @qqqqqqqq
            last edited by Jan 18, 2021, 11:06 PM

            @qqqqqqqq
            You must use:
            timeFormat: ‘absolute’,
            getRelative: 0,
            urgency: 0,
            in the config.js

            U 1 Reply Last reply May 1, 2021, 10:33 AM Reply Quote 0
            • U Offline
              uros76 @pablo_z
              last edited by May 1, 2021, 10:33 AM

              @pablo_z said in absolute date in calendar module:

              @qqqqqqqq
              You must use:
              timeFormat: ‘absolute’,
              getRelative: 0,
              urgency: 0,
              in the config.js

              I wanted the same, to have just dates of events shown. This helped me, thanks.

              My magicmirror projects: https://forum.magicmirror.builders/post/79889, https://forum.magicmirror.builders/post/93241 and https://forum.magicmirror.builders/post/94586

              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 2 / 2
              • 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