Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there any possible way how to simulate different system time for application/ service ? I need to send for ex. date 20.4.2012 to one app, but need to have real date and time set in windows.

Thanks a lot

share|improve this question

2 Answers 2

I believe your simplest option would be virtualization - simply create (another) virtualized container with the desired date/time settings and run your app there.

Other options like intercepting / overloading / shadowing system calls for date and time retrieval may exist in theory, but I would not be aware of any practical implementation - especially since this seems like a specific border use case.

share|improve this answer

There isn't enough information here to give a definitive answer.

The key issue is where does your app get its date/time values from? If it's from Windows, then the only way to do this is to change the Windows date.

Of course, it might get its date/time data from elsewhere, unlikely but possible. In which case, there may be other options.

But assuming it gets the information straight from Windows, the only alternative is to either change the server date, or run the software on another Server/VM where you CAN change the date.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.