This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

TIME errors


  1. buck1942
    Member

    What do I need to do to correct these errors:

    Warning: strtotime() [function.strtotime]: 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 'America/Chicago' for 'CDT/-5.0/DST' instead in /home/bucksweb/public_html/machform/includes/helper-functions.php on line 38

    Warning: strtotime() [function.strtotime]: 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 'America/Chicago' for 'CDT/-5.0/DST' instead in /home/bucksweb/public_html/machform/includes/helper-functions.php on line 56

    Thank you,

    Buck

    Posted 12 years ago #
  2. yuniar

    It looks like the PHP on your server doesn't have the timezone being set correctly and you need to set the timezone manually. To do so you can edit your config.php file and put this code (around line 6):

    date_default_timezone_set('America/Chicago');

    in the above sample, it would set the timezone to Chicago's timezone.
    You can change it with other timezones. The complete list is available here:

    http://www.php.net/manual/en/timezones.php


    MachForm Founder

    Posted 12 years ago #
  3. degreesnorth
    Member

    I've checked your posts and see a number of different responses for this problem.

    Warning: strtotime(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /clientdata/apache-www/o/w/owlandthepussycat.com.au/www/machform/edit_form.php on line 303

    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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /clientdata/apache-www/o/w/owlandthepussycat.com.au/www/machform/edit_form.php on line 303

    Warning: strtotime(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /clientdata/apache-www/o/w/owlandthepussycat.com.au/www/machform/edit_form.php on line 309

    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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /clientdata/apache-www/o/w/owlandthepussycat.com.au/www/machform/edit_form.php on line 309

    Can you advise specifically which file I need to edit to get rid of this message?

    Thanks

    Posted 12 years ago #
  4. redityo

    You need to edit config.php file which located in your machform folder.
    You can add this code after <?php

    date_default_timezone_set('America/Chicago');

    MachForm Support

    Posted 12 years ago #
  5. emarioc
    Member

    Thank you, it worked perfectly!

    Posted 11 years ago #

RSS feed for this topic

Reply