Privet.

It there any rule why the first "a" in the word "часа" is pronounced as "i".

And why the "я" is the word "месяц" is pronounced also as "i".

Spasibo.