Changing aMember Server UTC date and time

Discussion in 'Troubleshooting' started by dannam, Aug 3, 2015.

  1. dannam

    dannam aMember Pro Customer

    Joined:
    Apr 23, 2012
    Messages:
    4
    Just a post to help others who might have this situation....

    The default time zone in aMember is UTC 0, but since we are in the US EST time zone (UTC -4) we wanted to change aMember server time so our invoices would be date stamped correctly.

    The fix that appears in the forums is to add this line in a php.ini at the root directory on your web host server:
    date.timezone = "America/New_York"

    Unfortunately in our situation, the presence of any php.ini file (regardless of what the file contained) triggered a fatal error in aMember.

    aMember provided an alternative solution that worked perfectly:
    Add this line to the top of /amember/application/configs/config.php: just after <?php line:
    date_default_timezone_set('America/New_York');

    Cheers!
    flyinjs likes this.
  2. flyinjs

    flyinjs New Member

    Joined:
    Aug 29, 2006
    Messages:
    7
    Worked for me also! Thanks for passing it on. Did forget to put the semi colon on the end after bracket:
    date_default_timezone_set('America/New_York'); of course it didn't work, now it does.
  3. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295

Share This Page