Reputation: 12538
I tried using the php function below to accomplish this, however, it returns a mounain time, timestamp. I was wondering if someone can help me understand how I change time zones, or if someone can help me correct this to EDT?
date("F j, Y, g:i a");
Upvotes: 0
Views: 1931
Reputation: 76
You can either set it locally in the script itself, by using the date_default_timezone_set() function:
http://php.net/manual/en/function.date-default-timezone-set.php
Or you can change it in your php.ini file, if you look for the line:
date.timezone
Edit: Here is a list of supported timezones, if you're not sure what yours should be called: http://php.net/manual/en/timezones.php
Upvotes: 1