Is it possible to make a PHP application think that the server datetime is offset by a large configurable amount (like 6 months ago, or 6 months from now)?
Background: We have a web application that deals with sporting events and right now we would like to run it in our development environment in such a way that the web site thinks it is Fall 2009 instead of Summer 2010. That's because we have great data from last year's Fall season and this year's season has not yet started, so testing new features would be easier with scads of real data instead of making up new test data for 2010.
We don't want to actually change the server's date and time. The current best option seems to be to change all date() calls in the code to my_date() and then have my_date() add the offset to the actual system date.
It seemed like this feature would be useful in similar situations for others, so I was just curious if there's an easier way to do it globally through some configuration parameter without modifying code. I did RTFM.