Sorted it. It was a server upgrade. I used an ENV that listed the date simply as the day. Someone at the host updated the software so that it lists the day and time, to the second. My script simply compared each incident of the ENV and compared it with the previous one, and if they were different assumed it to be a new day. So It saw saw each different timestamp as a new day, making the days one second long in it's thinking!
THIS IS WHY COMPUTERS WILL NEVER TAKE OVER THE WORLD!
|