California passed a law against...what, exactly? Staying there for a month? Who told you that? And even if there were some kind of law like that somewhere in the state, that wouldn't be a statewide law, but a regional (city or county) one.
Also, you're doing yourself a disservice to think of CA...