Quote from HustleThePlanet:
I once found myself in a similar situation. As it turns out, on just one particular line of code, I had forgotten that arrays start at zero instead of at one. My system was basically granted the ability to see a day into the future when dealing with historic data, so of course it worked extremely well. Once a "-1" was added to the appropriate line of code the whole thing collapsed.
Yes, my point exactly.