Billy Ray is absolutely right. The regulations specifically state that if you are off-trail for more than 24 hours, you must get a new permit — regardless of the entry/exit dates on the permit you originally carried.
This regulation is buried somewhere in one of the on-line info (I forget where), and — to be perfectly honest — I never read it until someone pointed it out to me a week ago, so when I went off-trail during last summer's JMT thru (twice) for more than 24 hours, I was inadvertently in violation of the regulations.
I really don't understand the intent of this regulation, and it really annoys me!!! It seems counter-intuitive to potentially prevent people from completing the trail with their existing permit just because some problem arises (say, they need a doctor/dentist, or a resupply didn't arrive). It seems logical that — provided they are still within their entry/exit dates — they should be able to take as long as they want for a resupply! What harm would this do to others?
So, frankly, I would just do as you had originally planned, and IF you meet a ranger, just tell them that you were off-trail for less than 24 hours.
BTW, leaving unaccompanied food in ANY trailhead bear box overnight is strictly prohibited (but I saw several people do it). I fully understand this regulation, because long-term storage of food for thru-hikers could easily fill up the trailhead bear boxes, preventing day hikers and permitted campers from storing their food there.