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.

    Recurring events after midnight UTC one day off

    Scheduled Pinned Locked Moved Bug Hunt
    4 Posts 2 Posters 504 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.
    • P Offline
      pintail105
      last edited by

      I’m in US Central Time zone (GMT-0600). It seems recurring events that start after 6PM local time (i.e., midnight UTC) have dates adjusted such that the event time is correct, but the date of the event is one day sooner.

      I’ve pulled the develop branch and the problem still exists.

      Here’s an example DEBUG log (private info redacted). In this example the start datetime is 6:30PM Wednesday CST (01:30 Thursday UTC), but the dates returned are all 6:30PM Tuesday (01:30 Wednesday UTC).

      [18.01.2021 19:05.08.563] [DEBUG] have entries
      [18.01.2021 19:05.08.564] [DEBUG]
      event={“type”:“VEVENT”,“params”:[],“start”:“2021-01-07T01:30:00.000Z”,“datetype”:“date-time”,“end”:“2021-01-07T03:00:00.000Z”,“rrule
      “:{”_cache”:{“all”:false,“before”:[],“after”:[],“between”:[]},“origOptions”:{“dtstart”:“2021-01-07T01:30:00.000Z”,“freq”:2,“wkst”:{"
      weekday":6},“interval”:2,“byweekday”:[{“weekday”:2}]},“options”:{“freq”:2,“dtstart”:“2021-01-07T01:30:00.000Z”,“interval”:2,“wkst”:6
      ,“count”:null,“until”:null,“bysetpos”:null,“bymonth”:null,“bymonthday”:[],“bynmonthday”:[],“byyearday”:null,“byweekno”:null,“byweekd
      ay”:[2],“bynweekday”:null,“byhour”:[1],“byminute”:[30],“bysecond”:[0],“byeaster”:null}},“dtstamp”:“2021-01-19T01:05:06.000Z”,“uid”:"
      redacted@google.com",“created”:“2020-12-28T00:16:14.000Z”,“description”:“”,“lastmo
      dified”:“2020-12-28T00:16:14.000Z”,“location”:“”,“sequence”:“0”,“status”:“CONFIRMED”,“summary”:“Event summary”,“transparency”:“O
      PAQUE”}
      [18.01.2021 19:05.08.564] [DEBUG] start=Wed Jan 06 2021 19:30:00 GMT-0600 (Central Standard Time) end=Wed Jan 06 2021 21:00:00 GMT-
      0600 (Central Standard Time)
      [18.01.2021 19:05.08.565] [DEBUG] between=Mon Jan 18 2021 19:05:08 GMT-0600 (Central Standard Time) to Mon Jan 17 2022 23:59:59 GMT-0600 (Central Standard Time)
      [18.01.2021 19:05.08.570] [DEBUG] title=Event summary dates=[“2021-01-20T01:30:00.000Z”,“2021-02-03T01:30:00.000Z”,“2021-02-17T01:30:00.000Z”,“2021-03-03T01:30:00.000Z”,“2021-03-17T01:30:00.000Z”,“2021-03-31T01:30:00.000Z”,“2021-04-14T01:30:00.000Z”,“2021-04-28T01:30:00.000Z”,“2021-05-12T01:30:00.000Z”,“2021-05-26T01:30:00.000Z”,“2021-06-09T01:30:00.000Z”,“2021-06-23T01:30:00.000Z”,“2021-07-07T01:30:00.000Z”,“2021-07-21T01:30:00.000Z”,“2021-08-04T01:30:00.000Z”,“2021-08-18T01:30:00.000Z”,“2021-09-01T01:30:00.000Z”,“2021-09-15T01:30:00.000Z”,“2021-09-29T01:30:00.000Z”,“2021-10-13T01:30:00.000Z”,“2021-10-27T01:30:00.000Z”,“2021-11-10T01:30:00.000Z”,“2021-11-24T01:30:00.000Z”,“2021-12-08T01:30:00.000Z”,“2021-12-22T01:30:00.000Z”,“2022-01-05T01:30:00.000Z”]
      [18.01.2021 19:05.08.571] [DEBUG] initial tz=America/Chicago
      [18.01.2021 19:05.08.571] [DEBUG] corrected tz=America/Chicago
      [18.01.2021 19:05.08.572] [DEBUG] start date/time=Wed Jan 06 2021 19:30:00 GMT-0600 (Central Standard Time)
      [18.01.2021 19:05.08.573] [DEBUG] start offset=-360
      [18.01.2021 19:05.08.574] [DEBUG] start date/time w tz =Wed Jan 06 2021 19:30:00 GMT-0600 (Central Standard Time)
      [18.01.2021 19:05.08.574] [DEBUG] event date=Tue Jan 19 2021 19:30:00 GMT-0600 (Central Standard Time)
      [18.01.2021 19:05.08.575] [DEBUG] event offset=-360 hour=19 event date=Tue Jan 19 2021 19:30:00 GMT-0600 (Central Standard Time)
      [18.01.2021 19:05.08.576] [DEBUG] adjustHours=0
      [18.01.2021 19:05.08.576] [DEBUG] duration=5400000
      [18.01.2021 19:05.08.577] [DEBUG] saving event =false

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @pintail105
        last edited by

        @pintail105 when u installed was this a git pull/npm install, or git clone/npm install

        also seem rrule troubles w complex rule sets like that one

        mm, node-ical, rrule libraries w with utc based time

        the luxon lib under rrule works w local time only, and assumes the date portion is today, not yesterday plus 1 hour.

        i made a lot of fixes for calendar in 2.14. due to. being in the hospital right now i cant do any more

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • P Offline
          pintail105
          last edited by

          @sdetweil : Here’s how I installed the develop branch:
          git clone -b develop https://github.com/MichMich/MagicMirror
          cd MagicMirror/
          npm install
          cp …/…/MagicMirror_mystuff/config.js config/ # I had a made a copy of my main config.js here.
          npm run start

          No rush. Just wondering if this is a bug and if I should log it as one. I’m happy to help with code as I’m able to. But, I don’t have experience with nodejs and the libraries.

          Thank you!

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @pintail105
            last edited by sdetweil

            @pintail105 no idea. away from my system for weeks already. no timeline to get back.

            all my fixes were in 2.14

            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