Have you ever encounter such a scenario:
Need to test some date related functionality of your software, the software rely on OS to get current date, so we have to change the date of OS, but date & time is actually a critical service in any OS, changing date & time of OS may cause problems, for example some application server check last-modified date to decide whether to recompile JSP files.
Is there any smart way to handle such problems, like set date & time on JVM level or application level ?