Fixed the end timestamps to take the entered time