In my particular case, both the server and the client are the same computer, I\'m on localhost. When i echo out the date from the date() function, it displays a totally wron
Open the php.ini under /etc/php.ini .
Uncomment this line and add your continent and the main city. Here is an example which works for Germany (Deutschland).
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Europe/Berlin
See the website http://php.net/manual/de/timezones.php for all timezones in German.
Save the file php.ini. And restart the apache. Mageia LINUX uses this:
systemctl restart httpd.service