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.

    Calendar: how to change "In 2 days"?

    Scheduled Pinned Locked Moved Troubleshooting
    3 Posts 2 Posters 744 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.
    • T Offline
      TomJC70
      last edited by

      I’m fine with “Today” and “Tomorrow”, but I would like to see “17 Jul” instead of the current “In 2 days”.

      I think my config.js is correctly setup, but clearly the calendar still shows “In 2 days”.

      Not sure what to try next, some help is highly appreciated.

      Thanks,

      Tom

      alt text

      My config:

      module: "calendar",
      header: "Calendar",
      position: "top_right",
      config: {
      	fade: true,
      	fadePoint: 0.75,
      	colored: true,
      	timeFormat: "absolute",
      	dateFormat: "D MMM",
      	fullDayEventDateFormat: "D MMM",
      	urgency: 0,
      	getRelative: 0,
      	nextDaysRelative: true,
      	calendars: [
      		{
      			// Private
      			symbol: "chevron-circle-right",
      			color: "#ffcc00",
      			url: "https://calendar.google.com/calendar/ical/xxx/basic.ics"
      		},
      		{
      			// Birthdays
      			symbol: "grin-alt",
      			color: "#9966cc",
      			url: "https://calendar.google.com/calendar/ical/yyy/basic.ics"
      		},
      		{
      			// Work
      			symbol: "dot-circle",
      			color: "#3366ff",
      			url: "https://calendar.google.com/calendar/ical/zzz/basic.ics"
      		}
      		]
      	}
      
      
      1 Reply Last reply Reply Quote 0
      • BKeyportB Offline
        BKeyport Module Developer
        last edited by

        https://docs.magicmirror.builders/modules/calendar.html#configuration-options

        Look into getRelative, and urgency options.

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

        1 Reply Last reply Reply Quote 0
        • T Offline
          TomJC70
          last edited by TomJC70

          Both are set to 0 and from my understanding this should mean I see absolute dates only.

          edit:
          I did some more testing and the problem only occurs with full day events.

          1 Reply Last reply Reply Quote 0
          • P p1lspeda referenced this topic on
          • 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