The time value should be added to the newState initialization:
const newState = new MapState(state.zoom, state.center, state.options, state.extent, state.time);
Additionally, an own setTime() setter function similar to the setExtent function would be helpful, as the time is often adjusted independently of the other map states, e.g. with a time slider.
In the function https://github.com/dlr-eoc/ukis-frontend-libraries/blob/1dcbf5ad2af15a642718ef560fd90f30c3211b91/projects/services-map-state/src/lib/map-state.service.ts#L21 the time attribute is left out. If the given MapState object contains a time value, it will not be passed to the map state service.
The time value should be added to the newState initialization: const newState = new MapState(state.zoom, state.center, state.options, state.extent, state.time);
Additionally, an own setTime() setter function similar to the setExtent function would be helpful, as the time is often adjusted independently of the other map states, e.g. with a time slider.