My question involves landlord-tenant law in the State of: California
We live in a house that's at least 10-20 years old. There's a portion of the house that presents a rather unsafe condition, so we suspect there may be a code violation, but we'll have to contact the city to be sure.
If, at any time after the house was sold to the landlord, the City changes its residential code, is the landlord financially responsible for ensuring the house meets the changed code while s/he is renting it out? Does the house also have to abide by changes made prior to the sale of the house?
Edit: According to SFGate, landlords must maintain a safe environment. If this is a code violation, then we may be able to get the city to legally force our landlord to correct the issue. Not that we'd do that without first talking to the landlord.

