I realised today, somewhat belatedly, that our shiny Toyota Verso is due for its first service (the service interval is shorter than on my previous car, which caught me out).
So, I'm trying to book my service online for this Friday afternoon, using Toyota's glossy and professional-looking UK website. But every time I try to progress onto the second screen, I'm thwarted by this message:
Now this strikes me as a little bit odd, as Friday 12th is clearly between 2 and 90 days from today.
Ouchy. So the date range check has been done in two steps, rather than using an or operator, and the message text differs between each step. The nextAvailableDay variable is correctly being set to five days hence, but the message is incorrect in this case. I was going to cite cut-and-paste coding but then I noticed the mis-spelling of "Centre" in the first message so now I'm not sure.
Just for fun, I tried circumventing the client-side validation by entering
I do hope that what's going on under my Toyota's hood is of a higher quality than the code that's driving their website!