The best time to plant insect-repellent plants is in the early morning or late afternoon, when the temperatures are cooler and the sun is less intense.