Trying to manipulate the timestamp variable in such a way: if the start time of the following activity is before the end time of the previous activity, then update the start and end time of the previous activity as 1 second before the following activity.Trying to manipulate the timestamp variable in