Hi!
Using the fullblock api integration ( great work, btw ), I realised that there's no way I could show events end time.
First of all I configured the block to always show the end time:
{'displayEventEnd':true}
but it yet didn't show the end time, because the API doesn't provide that information:
BookableCalendarApiController.php
$opening_array[] = [
'title' => $bookable_calendar->title->value,
'start' => date('Y-m-d H:i:s', $instance->date->value),
'end' => date('Y-m-d H:i:s', $instance->date->value),
'url' => $path,
];
Shouldn't it be like this?
$opening_array[] = [
'title' => $bookable_calendar->title->value,
'start' => date('Y-m-d H:i:s', $instance->date->value),
'end' => date('Y-m-d H:i:s', $instance->date->end_value),
'url' => $path,
];
Regards, Diego
Comments
Comment #3
josh.fabeanComment #5
josh.fabeanHey dbrouard, good find!
I got that patched and pushed up to latest dev for you to test out.
Comment #6
josh.fabeanThat is now pushed out to version 2.1.5
Comment #7
josh.fabeanComment #8
dbrouard commentedHi Josh, it's perfect, thanks!
Great work BTW, this module is very very useful :)
Comment #9
josh.fabeanGood to hear and thanks!
Comment #10
josh.fabean