Been thinking about writing a solarpunk story about a far future where humans live on this habitable Earth-like moon, but I’m wondering how the weather would work if the Earth-like moon is tidally locked to a gas giant and thus one day on the moon corresponds to a full orbit which would be like longer than an Earth week. So parts of the moon would be in night for several Earth days long, and other parts would be regularly eclipsed by the massive gas giant as well, making a sort of night.

How would the weather work in such a case? Would it freeze every night on this world? Or would winds and atmosphere still regulate temperatures?