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 Module - Altering event time format

    Scheduled Pinned Locked Moved Troubleshooting
    1 Posts 1 Posters 935 Views 1 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.
    • Robert_KR Offline
      Robert_K
      last edited by Robert_K

      The Magic Mirror is a bit new for me. But I got all preferred parts working.

      The calendar now shows:
      “event tomorrow 08:00”

      I would like to see:
      event monday 08:00 till 10:00

      My code is as follows:

      		{
      			module: "calendar",
      			header: "Kalender Robert",
      			position: "top_left",
      			config: {
                                      maximumNumberOfDays: 7,
      				maximumEntries: 8,
      				displaySymbol: false,
      				dateFormat: 'ddd-Do-MMM'
      				fullDayEventDateFormat: 'ddd-Do-MMM',
      				urgency: 0,
      				getRelative: 0,
      				timeFormat: 'absolute',
      				calendars: [
      					{
      						symbol: "calendar-check-o ",
      						url: "https://calendar.google.com/calendar/ical/*PRIVATE CODE*/basic.ics"
      					}
      				]
      			}
      

      Can anyone point me in the right direction of changing the time format?

      Best Regards and thanks in advance,

      Robert

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