Change the default time zone

Sometimes people have hosted in other parts of the country than where they are located. When that happens the script using the default time zone for the area the server is located.

To change the default time zone you can add this:

ini_set('date.timezone', 'America/Los_Angeles');

or

putenv("TZ=US/Eastern");

To the following files:

Please see these links for further reference:

Keep in mind this will only change new dates and any already inserted in the database will be left the same.