Set start/end date from selected sensor.

This is getting reset by something on the 1st click at the moment, so
that needs to be tracked down.