Qasim bin Mukhaymirah (may Allah have mercy on him) says: Your time is (as) your ruler; when the ruler is sound, the time is sound too, and if the ruler is corrupt, the time is corrupt too.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب قتال أهل البغي / 16652