By jconesa on Friday, 02 December 2022
Replies 1
Likes 0
Views 469
Votes 0
Hello, I have a very important question. I present my case:
We have a Portal with Joomla and they pass us an API that gives event information, for this we want to use their Jevents plugin. The api comes in JSON format and our idea is to convert the JSON to CSV to fill in the event fields and adapt them to the JEVENTSHA structure. So far, the problem that arises is that the API information returns the dates in this format :
"Celebration Dates": [
"2022-12-06T00:00:00",
"2022-12-08T00:00:00",
"2022-12-13T00:00:00",
"2022-12-15T00:00:00",
"2022-12-20T00:00:00",
"2022-12-22T00:00:00",
"2022-12-24T00:00:00",
"2022-12-25T00:00:00",
"2022-12-27T00:00:00",
"2022-12-29T00:00:00",
"2022-12-31T00:00:00",
"2023-01-01T00:00:00",
"2023-01-03T00:00:00",
"2023-01-05T00:00:00"
],
So the problem is that we cannot complete the CSV RRULE field because the structure of this field is as follows
Example:
FREQUENCY=WEEKLY;COUNTER=5;INTERVAL=1;PER DAY=US
THE COUNT if we can get it and the INTERVAL also like the days but the frequency does not give us to show it.
Could or do you know how to solve it, or if there is another way to feed the component with the data that the API passes us.
Thanks
There isn't an easy way to do this since the iCal specifications don't allow for irregular date patterns. You could set them up date date exceptions but that would have to be an ics file and the structure is a LOT more complex
·
Friday, 02 December 2022 15:22
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post