MagicMirror² v2.12.0 is available! For more information about this release, check out this topic.

Calendar: how to change "In 2 days"?



  • 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"
    		}
    		]
    	}
    
    

  • Module Developer



  • 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.


Log in to reply