Scratch tomatoes crosswise. Pour into boiling water, rinse and peel the skin. Cut the tomatoes into cubes. Peel and dice the shallots. Dice the apricots. Caramelise sugar in a pot until light.
Take the pot off the stove. Stir in shallots and vinegar. Add tomatoes, apricots, thyme and mustard seeds and bring to the boil. Simmer at low heat for about 30 minutes. Stir from time to time. Season to taste with salt and pepper.
Fill the chutney hot into the prepared glasses and close them.