Fix a couple of bugs - cloning the alert lost the date format, and there were issues with the value of ‘item’ when looping