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

Calendar absolute and time format not changing

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 3 Posters 532 Views 3 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.
  • C Offline
    coffeeclimber
    last edited by Apr 26, 2020, 6:08 PM

    Hey all. I am hoping someone can shed some light on calendar event time display for the default calendar module. I have pasted the code below and while I can get the events to show an absolute date, that is as far as I can get. changing dateFormat seems to do nothing. I have referenced Moment.js as noted in the documentation.

    Maybe there is something fundamental I am not understanding? What I want, is to see the day of the week and the time for an event. For example: NameOfEvent Tue April 28th 10:00 AM

    Here is the code, with some redaction on the ical address.

    		{
    			module: "calendar",
    			header: "Family Calendar",
    			position: "top_left",
    			config: {
    				maximumNumberOfDays: 21,
    				getRelative: 0,
    				urgency: 0,
    				timeFormat: "absolute",
    				dateFromat: "ddd MMM Do HH:mm",
    				calendars: [
    					{
    						symbol: "calendar",
    						url: "https://calendar.google.com/calendar/ical/----------/basic.ics"
    						},
    
    				]
    			}
    

    But this results in the following display:
    feb95a4e-4ccd-40bc-b8a1-7917af4d9ae8-image.png

    Despite get relative being set to 0, it is still showing the closest event as relative and the following are dates only. Any thoughts?

    1 Reply Last reply Reply Quote 1
    • J Offline
      jackieandgil13
      last edited by Jul 18, 2024, 5:36 PM

      BKeyport
      MODULE DEVELOPER
      Nov 11, 2020, 1:02 PM

      Absolute isn’t absolute, without other tags…

      getRelative and urgency also 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”

      S 1 Reply Last reply Jul 18, 2024, 5:58 PM Reply Quote 0
      • S Away
        sdetweil @jackieandgil13
        last edited by Jul 18, 2024, 5:58 PM

        @jackieandgil13 well, everybody puts in suggestions and changes thus the 100 properties, some conflicting.
        community wins…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        S 1 Reply Last reply Jul 22, 2024, 12:20 PM Reply Quote 0
        • S Away
          sdetweil @sdetweil
          last edited by sdetweil Jul 23, 2024, 1:23 PM Jul 22, 2024, 12:20 PM

          @jackieandgil13 also, there are two different format strings…

          one for events with time
          dateFormat
          one for full day events, (without time)
          fullDayEventDateFormat

          the ones you showed look like full day events

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          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