According to STAC documentation the datetime metadata:
This is likely the acquisition (in the case of single camera type captures) or the 'nominal' or representative time in the case of assets that are combined together. Though time can be a complex thing to capture, for this purpose keep in mind the STAC spec is primarily searching for data, so use whatever single date and time is most useful for a user to search for.
The current code for Collection::to_stac forces datetime to equal start_time. This needs to be changed to respect a user set value.
According to STAC documentation the
datetimemetadata:The current code for Collection::to_stac forces
datetimeto equalstart_time. This needs to be changed to respect a user set value.