If your rent is due the 1st of every month, you would have been ok if you gave your notice on the 1st of the month, but you're a week late with your notice and there's no way out of it unless your landlord would agree to accept a weeks rent and let you off on the rest of the month. As a previous landlady, I would have let you do that, but most people won't.
The notice period isn't based on the rent-due date, it's based on counting backwards one month from the end of the lease. If the lease ends on 10/7, then it doesn't matter when the rent is due: the deadline for notification is 9/7, not 9/1.
[Having said that, I need to qualify my remarks by adding that I'm assuming that California law is the same as everywhere else regarding these types of notifications, and also that there is nothing in the lease itself that sets up a different notification requirement]