Change Post status based on custom field date +1 day

Doesn’t your script state to expire the post if it’s expire date is before tomorrow? Wouldn’t that make it expire a day sooner? If it’s set to expire the 12th, and it’s the 11th, 11+1 = 12, so expire it. Wouldn’t you rather either subtract 1 day instead of add 1 day, or add the day to the expiration date instead.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)