Jump to content

Recommended Posts

Warning: require_once() [function.require-once]: 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/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/cernem5/public_html/includes/form_functions.php on line 2

 

I looked through all of the php.ini file and I can find this setting.  Any suggestions?

 

I contacted the guys at inmotion who are hosting my vps and they said they had to make a change on their server since I didn't have root access.

 

Is there a way in my coding to avoid this problem?  Here is the code that is causing all the problems:

<?php echo date("Y", time()); ?>

 

Link to comment
https://forums.phpfreaks.com/topic/207950-timezone-setting/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.