I have to add in here...yes changing feeding time works, and exercise...spiteful pottying happens-I've experienced it when a dog has forced themselves to go...make sure you adjust food and exercise times first and if it still isn't working consider a kennel or play yard...play pen...AKC potty patch is pretty cool too!
https://www.pottypatch.com/default.a...=&refcode=1002