-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different calendars report different UTC times #123
Comments
Dear André, currently issue #119 will only be available for "normal" calDav Server ;) I also thought of implementing this for "icloud secure", but as you said, I've no idea how to handle the different passwords nicely... regards to your timezone difference, I only know the icloud.com option for time zone directly at the event. It seems, that both are at the same time, but they are reported as 11:00 and 20:00 UTC Maybe that's the problem? Otherwise the debug log would be useful :) Please be aware of the basic password. You can send me it via mail 👍 Greets, |
Benjamin,
Time zone support is not enabled in my calendars; so, I do not see the time zone field in a new entry that you see.
Somehow, the two calendars internally seem to be in different timezones. The end result is OK, I can only not sort on the internal UTC times.
This is not an issue of your nodes, they only report what they read in the calendars.
So, I will go and try to sort my events in some other way.
Regards, André
… Op 8 feb. 2022, om 12:30 heeft Benjamin ***@***.***> het volgende geschreven:
Dear André,
currently issue #119 <#119> will only be available for "normal" calDav Server ;) I also thought of implementing this for "icloud secure", but as you said, I've no idea how to handle the different passwords nicely...
regards to your timezone difference, I only know the icloud.com option for time zone directly at the event.
<https://user-images.githubusercontent.com/11535502/152978290-cb65689f-3ffe-40a3-b5c9-5d13cb113f45.png>
It seems, that both are at the same time, but they are reported as 11:00 and 20:00 UTC
<https://user-images.githubusercontent.com/11535502/152978498-01499062-d7ec-4516-88ed-2b05a1e95a4d.png>
Maybe that's the problem?
Otherwise the debug log would be useful :) Please be aware of the basic password. You can send me it via mail 👍
Greets,
Benjamin
—
Reply to this email directly, view it on GitHub <#123 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAFIBPHJXGAF5NY7KUC7TSLU2D5HBANCNFSM5NZ6MPNQ>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.
|
Perhaps the debug output will give us more informations ;) https://naimo84.github.io/kalender-events/guide/debug.html It will show us the ical Data like this
But nevertheless I can't imagine, why the tzids should be different from dtstart to dtend... |
Benjamin, Please find attached the .ics file of yesterday's example. I see no funny things in there. Looking in the msg.payload in Node-Red, I see timezone Europe/Brussels for both dtstart and dtend. Regards, André |
André, in some way this is funny ;) the ics file looks correct, the tzid is correct, eventStart/end is correct now as they are UTC. I have no idea, why yesterday is was an other result... Yesterday you triggered past 12 o'clock, today before 12. But this would be "really funny", if it's a timebased problem |
Benjamin, As example I give you an appointment for this morning 0800-0900, please observe the .ics file as .txt. The next image displays the output from the upcoming node, eventSTart and eventEnd are wrong, dtstart and dtend and the associated time zones are OK. The weird thing is that in the end correct datetimes are produced. The 'within node' display a start time of 0700; that is as intended as we open the door 1 hour before the first appointment of 080-0900, i.e. 0700. Next, I tried the other calendar that I access in NodeRed. Events in that calendar do not display the eventStart, eventEnd issue. The issue seems to be in one calendar but not in the other. Finally, I include part of the log output. removed for privacy Curious if you come with any ideas. Regards, André |
Benjamin, I am trying to dig out the original dtstart and dtend values out of the array in originalEvent.components. However, array[1] gives 'undefined'. Asking for the keys of that array gives the weird result ["jcal", et cetera] as in the image below. I am really lost here. Can you explain to me how to retrieve dtstart and dtend? Regards, Andre |
Benjamin, I managed to extract dtstart and dtend but in a roundabout sort of way: let tempArray = [] consultaties = flow.get("consultaties").concat(msg.payload)
}) In image below you can see the output: The event "Sanne Spetters" is from the calendar that is ok; the event "Gaby Baetens" is from the one that where eventStart and evenend are wrong. Regards, André |
Benjamin, Tried again this morning (Friday); for an appointment 1000-1100 I see startEvent at 0900UTC and endEvent at 1000UTC, both correct. The problem seems to have disappeared at least for today. Regards, André |
André, happy to read, it disappeared ;) Even if I don't understand why ;) And thanks for the Log File 👍 But I don't see any error in it. I'll close this in a week, if I don't hear anything from you. Hopefully ;)) Greets, Benjamin |
Benjamin,
I just read issue 119. That seems very complex if you have different passwords for each calendar as in Include secure mode.
I solved this long time ago; I use an upcoming node for each calendar, set the results of the first in a flow variable, retrieve that while processing the second calendar and concatenate but calendar outputs!
But the above is not my issue. I stumble on something weird as I am trying to improve my logic handling the calendar events. See attached images. I have two events for test in two iCloud calendars, both on default timezone UTC.
I use your upcoming node with different configs for calendar 1 and 2.
The Test 1 event at 0900 local time is reported at 0700UTC, 2 hours difference.
The Test 2 event at 9000 local time is reported at 0800UTC, 1 hour difference.
However, both events produce the correct local time for the 'within' node. My only problem is I need to sort events at the start when I only have the UTC time; that sort is therefore wrong.
Any ideas?
Regards, André
The text was updated successfully, but these errors were encountered: