Roughly chop tomatoes and onions and season with salt overnight. If it is left to soak for a long time, the cooking time will be shorter, as tomatoes and onions will then become softer. Pour off the liquid.
Let the tomatoes, onions, sugar, vinegar and mustard seeds cook for 20-30 minutes, uncovered, then mix in the dates and spices. Pour hot into clean glasses.