Investors & landlords

So, CA gets the full capital gain tax even though I was only in CA for 48 days.  Is there no way to pro-rate down to a lesser amount?