windows – Running an application at a different time/date


I have to test the licensing mechanism of our application. One part of the test is to set the date to the past or future.

This worked well using my own PC, but it has some bad effects, e.g. if I save test reports, it will add the current date and time, which looks like I performed the test in the past or future. Also, since time is synchronized via NTP by our IT department, using my own PC does not work reliably any longer.

I tried using virtual PCs, but they tend to synchronize the time with the local PC. That can be turned off, but usually I want it turned on, so it’s just inconvenient.

In another scenario, I am testing a client-server application and see what happens if the client time and server time differ. I’d like to do that on one machine without needing a second virtual OS just to change the time.

I wonder whether there’s a more lightweight application that allows changing the time reported to a single application only. Something like a sandbox or an API hook.

Such a tool

  • must run on Windows (7 x64, 10 x64)
  • must be gratis
  • may be a command line tool
  • must change the offset of the clock reported to the application by some months to just a few minutes.

Note: I don’t want to change file timestamps.



Source link

Related Posts

About The Author

Add Comment