How can I change the date and time of the server using PHP scripts? I know it will work if you change the time in the CLI but is it possible to change programatically?
I have created a route to that will pass a date and time localhost/date/{date}/time/{time}
to test if it will work when I will call the date()
in my controller.
Does someone know any method that can solve my problem?
Thanks in advance!