iobroker-community-adapters / ioBroker.ical

Read information from google calender and from iCal files into ioBroker.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong calcucation end date

om2804 opened this issue · comments

Сalendar from http://www.calend.ru/ical/ical-russtate.ics

Get ics:

BEGIN:VEVENT UID:20220101T020103CET-4132tVfn0A@calend.ru/russtate/ DTSTAMP:20220101T010103Z CATEGORIES:Праздники России COMMENT:https://www.calend.ru/holidays/0/0/2971/ DESCRIPTION:Ежегодно 7 ноября в России отмечается памятная дата — День Октя брьской революции 1917 года.Формально этот праздник был учрежден в 2005 го ду\, но на самом деле имеет давнюю историю и знаком любому человеку\, роди вшемуся и воспитанному в Советс DTSTART;VALUE=DATE:20221107 RRULE:FREQ=YEARLY SUMMARY:День Октябрьской революции 1917 года в России URL:https://www.calend.ru/holidays/0/0/2971/ END:VEVENT

Adapter format table:

{"date":"→ 08.11.2022 ","event":"День Октябрьской революции 1917 года в России","_class":"ical_holidays ical_today","_date":"2022-11-06T22:00:00.000Z","_end":"2022-11-08T22:00:00.000Z","_section":"Ежегодно 7 ноября в России отмечается памятная дата — День Октябрьской революции 1917 года.Формально этот праздник был учрежден в 2005 году, но на самом деле имеет давнюю историю и знаком любому человеку, родившемуся и воспитанному в Советс","_IDID":"20220101T020103CET-4132tVfn0A@calend.ru/russtate/","_allDay":true,"_private":false,"_rule":" rrule ","location":"","_calName":"holidays","_calColor":"#ffa4a4","_object":{"type":"VEVENT","params":[],"uid":"20220101T020103CET-4132tVfn0A@calend.ru/russtate/","dtstamp":"2022-01-01T01:01:03.000Z","categories":["Праздники России"],"comment":"https://www.calend.ru/holidays/0/0/2971/","description":"Ежегодно 7 ноября в России отмечается памятная дата — День Октябрьской революции 1917 года.Формально этот праздник был учрежден в 2005 году, но на самом деле имеет давнюю историю и знаком любому человеку, родившемуся и воспитанному в Советс","start":"2022-11-06T22:00:00.000Z","datetype":"date","rrule":{"_cache":{"all":false,"before":[],"after":[],"between":[]},"origOptions":{"dtstart":"2022-11-07T00:00:00.000Z","freq":0},"options":{"freq":0,"dtstart":"2022-11-07T00:00:00.000Z","interval":1,"wkst":0,"count":null,"until":null,"bysetpos":null,"bymonth":[11],"bymonthday":[7],"bynmonthday":[],"byyearday":null,"byweekno":null,"byweekday":null,"bynweekday":null,"byhour":[0],"byminute":[0],"bysecond":[0],"byeaster":null}},"summary":"День Октябрьской революции 1917 года в России","url":"https://www.calend.ru/holidays/0/0/2971/","end":"2022-11-08T22:00:00.000Z","method":"PUBLISH"}}

Adapter format Html:

<span style="font-weight: bold; color: red"><span class="icalWarn iCal-holidays">&#8594; 08.11.2022 </span></span><span style="font-weight:normal;color:#ffa4a4"><span class="icalWarn2 iCal-holidays2"> День Октябрьской революции 1917 года в России</span></span><br/>

My time zone UTC+2.
Caclulated start date (start":"2022-11-06T22:00:00.000Z). It's ok.
Caclulated end date (_end":"2022-11-08T22:00:00.000Z). it should be _2022-11-07T22:00:00.000Z. The holiday lasts one day!

Versions:

  • Adapter version: 1.13.1
  • JS-Controller version: 4.0.23
  • Node version: 14.20.0
  • Operating system: Ubuntu
commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions.
Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

Actual

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions.
Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.