Wiki source code of ICal to JSON
Last modified by geosens on 2024/12/02 21:28
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | {{velocity wiki="false"}} |
2 | #if ($xcontext.action == 'get' && "$!{request.outputSyntax}" == 'plain') | ||
3 | $response.setContentType('application/json') | ||
4 | #set ($format = "yyyy-MM-dd") | ||
5 | ## Display the JSON content. | ||
6 | $services.fullcalendar.getICalEvents($request.iCal, $datetool.toDate($format, $request.start), $datetool.toDate($format, $request.end)) | ||
7 | #end | ||
8 | {{/velocity}} |