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.

    Default Calender relative removes start time

    Scheduled Pinned Locked Moved Solved Troubleshooting
    14 Posts 3 Posters 5.5k 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.
    • lavolp3L Offline
      lavolp3 Module Developer @cptkex
      last edited by

      @cptkex
      You could try this

      timeWrapper.innerHTML = this.capFirst(moment(event.startDate, "x").fromNow()) + this.capFirst(moment(event.startDate, "x").format(this.config.dateEndFormat));
      

      I took the dirty way to use the dateEndFormat variable for a starting time.
      This is just a guess! I haven’t tried it out yet…

      How to troubleshoot modules
      MMM-soccer v2, MMM-AVStock

      C 1 Reply Last reply Reply Quote 0
      • BKeyportB Offline
        BKeyport Module Developer
        last edited by

        because of the ending times, I went 100% absolute. works best on a small screen, too…

        dateFormat: “M/D h:mm a”,
        fullDateEventDateFormat: “M/D”,
        timeFormat: “absolute”,
        getRelative: 0,
        urgency: 0,
        dateEndFormat: “h:mm a”,

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

        lavolp3L 1 Reply Last reply Reply Quote 0
        • lavolp3L Offline
          lavolp3 Module Developer @BKeyport
          last edited by lavolp3

          @bkeyport that’s what I would recommend otherwise as well.
          I’m using the same config with the timeFormat: ‘dateheaders’ but for some reason I’m missing the ending times…

          How to troubleshoot modules
          MMM-soccer v2, MMM-AVStock

          lavolp3L 1 Reply Last reply Reply Quote 0
          • lavolp3L Offline
            lavolp3 Module Developer @lavolp3
            last edited by

            A bit offtopic, sorry, but wanted to write it down:

            The (quite) new ‘dateheaders’ option is a bit odd.
            It neglects most of the other options like urgency, today/tomorrow, getrelative, showEnd (i.e. shows only the starting time of an event).
            I guess it would need to be placed somewhere else in the code and be more integrated.

            How to troubleshoot modules
            MMM-soccer v2, MMM-AVStock

            1 Reply Last reply Reply Quote 0
            • C Offline
              cptkex @lavolp3
              last edited by

              @lavolp3 thanks i will try it!

              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