Open apolitze opened 3 months ago
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:
and I had a look into the iCalendar > DateParser, where it looks like $year might be updated in case date is computed: https://github.com/SemanticMediaWiki/SemanticResultFormats/blob/6dd7e46c1913b6555d8ac2dd0ef8385d0e214709/src/iCalendar/DateParser.php#L40
Setup SMW: 4.0.2
Steps to reproduce:
{{#set:Hat Startdatum|2024-12-31}} {{#set:Hat Endedatum|2024-12-31}}
{{#ask: [[{{PAGENAME}}]] |?Hat Startdatum=start |?Hat Endedatum=end |format=icalendar |title=Termin |description=Termin |searchlabel=iCal Export }}
Expected:
Current:
Can someone check this please?
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](https://github.com/SemanticMediaWiki/SemanticResultFormats/assets/31736279/5431b9a6-01e4-493d-ab56-5bbbc71af48b)
and I had a look into the iCalendar > DateParser, where it looks like $year might be updated in case date is computed: https://github.com/SemanticMediaWiki/SemanticResultFormats/blob/6dd7e46c1913b6555d8ac2dd0ef8385d0e214709/src/iCalendar/DateParser.php#L40
Setup SMW: 4.0.2
Steps to reproduce:
Expected:
Current:
Can someone check this please?