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
You need to do this in your php.ini file. I am on windows and run WAMP so my php.ini location is at: c:/wamp/bin/apache/Apache2.2.21/bin/
You then open that file and the default is set to: date.timezone = UTC
You would change this value for whatever timezone you want...
For a full list of timezones supported, you can visit: http://php.net/manual/en/timezones.php