I have a Delphi program that starts behaving wrong when run over midnight. To make a reproducable test case I have to change the local time of the system to something before midnight, run the program for some time, check for an error and switch back. While this can surely be done manually, I have problems to automate that for testing.
Are there any possibilities to give an application a special time when run whithout changing the system time? This can be from outside the program or even inside.
Although this might be a general Windows question I tagged it with Delphi as any solution working with Delphi is fine, while some with other programming environments are useless in this case.