Hi,
The time line is visualized with a range, so you can get the indicator position that has been added to the collection and substract a date / time value from that position to get the from range and add the same value to get the to range. Then you can position the indicator in the center of the timeline.
Kind Regards,
Pieter