5
I’m having a problem using the function date
using the parameters to return the current time.
When I use the function:
$hora = date('H:i:s');
When I give a echo
in the variable $hora
to verify, I have the following result:
14:45:21
But now it’s 9:45.
Is there any PHP or Xampp configuration that might be changing the time?
The date is returning correctly, but the time is not.
This is probably the time zone configuration: https://answall.com/q/245778/112052
– hkotsubo