AnchovyLegend
AnchovyLegend

Reputation: 12538

Creating a EDT (Eastern Daylight Time) - timestamp

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

Answers (1)

Dfsgfdgh Fgfdhgfhgh
Dfsgfdgh Fgfdhgfhgh

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

Related Questions