Warning: date(): It is not safe to rely on the system's timezone settings

Discussion in 'Installation' started by mediaadventor, Mar 10, 2012.

  1. mediaadventor

    mediaadventor New Member

    Joined:
    Mar 9, 2012
    Messages:
    8
    Hello,

    I installed the script, everything works fine but I get an error at the top of all my pages:

    Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /var/www/vhosts/xxxxxxx/httpdocs/member/setup/index.php on line 695

    What should I do to run the script correctly?

    thank you very much
  2. mediaadventor

    mediaadventor New Member

    Joined:
    Mar 9, 2012
    Messages:
    8
    Hello,

    [​IMG]

    Here is an overview of my setup. In theory the script should work ...
    What should I do?
  3. mediaadventor

    mediaadventor New Member

    Joined:
    Mar 9, 2012
    Messages:
    8
    Hello,

    Nobody can give me some help?

    thank you very much
  4. alex

    alex Administrator Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,020
    Of course we can help. Please submit a ticket with access info. From what I can see there are no reasons for such errors.
  5. mediaadventor

    mediaadventor New Member

    Joined:
    Mar 9, 2012
    Messages:
    8
    Hi Alex,

    I sent two replies to my request for your support (yesterday), I did not answer them ...
    Reference: RCB-52331-896
  6. brucetech3

    brucetech3 aMember Pro Customer

    Joined:
    Jun 1, 2014
    Messages:
    33
    I too have encountered this Warning which shows up in the top of the Amember pages in a long text block:

    I have gone to the mentioned index.php script but nothing there seems to clearly relate to time zone.
    And I could find no Amember setup GUI which specifies timezone.
    And I do not know what the warning message : "date.timezone setting or the date_default_timezone_set() function" commands are referring to.
    Is that in Amember? Or some PHP setting? Or something else on my server host?

    FYI, I have just a little while ago posted to the official Support Channel, but it is not yet Friday work day there yet. so waiting ...
  7. jenolan

    jenolan aMember Coder

    Joined:
    Nov 3, 2006
    Messages:
    493
    It is the php.ini setting date.timezone

    If you are on managed hosting, raise a ticket to their support and ask for it to be set.

    Otherwise;
    date.timezone -- I use UTC but a valid value from the list
    • WHM/Cpanel >> PHP Configuration Editor >> Advance Mode >> date.timezone
    • Non-Panel find where php.ini is, search for date.timezone and edit/add
  8. brucetech3

    brucetech3 aMember Pro Customer

    Joined:
    Jun 1, 2014
    Messages:
    33
    Thanks Jenolan,
    I posted a request to my hosting service.
    After a bit of web research it seemed that it was a PHP setting, but my host service has no interface for me to it. (They use Parallels H-Sphere instead of CPanel... an open-source philosophy thing). So I am now waiting on their reply.

Share This Page