Skip to content
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

iCalendar DTEND year stays same in case date is computed #826

Open
apolitze opened this issue Apr 2, 2024 · 0 comments
Open

iCalendar DTEND year stays same in case date is computed #826

apolitze opened this issue Apr 2, 2024 · 0 comments

Comments

@apolitze
Copy link

apolitze commented Apr 2, 2024

Hi SMW developers,

while testing I exported an iCalender date that had a DTSTART 20241231 and was wondering why the year for DTEND stays the same, if the enddate is computed:
2024-04-02_iCal

and I had a look into the iCalendar > DateParser, where it looks like $year might be updated in case date is computed:

Setup
SMW: 4.0.2

Steps to reproduce:

  1. Add two properties of type [[Has type::Date]] and set them to last day of year e.g.:
{{#set:Hat Startdatum|2024-12-31}}
{{#set:Hat Endedatum|2024-12-31}}
  1. Ask and export the dates as iCalendar Result:
{{#ask:
 [[{{PAGENAME}}]]
 |?Hat Startdatum=start
 |?Hat Endedatum=end
 |format=icalendar
 |title=Termin
 |description=Termin
 |searchlabel=iCal Export
}}

Expected:

  1. Termin.ics is exported and contains a calculated DTEND:20250101. Same behaviour that the next day is calculated as DTEND as if other dates are chosen.

Current:

  1. Termin.ics is exported and contains a calculated DTEND:20240101, which is invalid because it is before the DTSTART:20241231

Can someone check this please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant