I am developing PHP/Apache/MySQL based code on my Windows 10 laptop via Windows Subsytem For Linux.
I am working on some code that is time related. It has a mix of PHP date commands, and MySQL "NOW()" calls. I need to be able to work on this at any time, not just within the dates given in my database records.
I could set my Windows system clock and prevent it updating, but then using the Internet becomes almost impossible, as does any SSH connection as the clocks won't be in sync so secure connections won't work.
I need to time travel.
Without messing with all my data to change the end dates of thousands of records, anyone know of a simple / common way for me to have PHP and MySQL running via WSL on Windows 10, think that the date is something other than it is?