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
Started 12 years ago by buck1942 | 5 posts |
-
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 # -
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 # -
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 # -
You need to edit config.php file which located in your machform folder.
You can add this code after <?phpdate_default_timezone_set('America/Chicago');
MachForm Support
Posted 12 years ago # -
Thank you, it worked perfectly!
Posted 11 years ago #
Reply
You must log in to post.