Calfuray Posted August 13, 2010 Report Share Posted August 13, 2010 I have the following error on pretty much all the pages. The line number changes with each page it seems. Warning: date() [function.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 'America/Los_Angeles' for '-7.0/DST' instead in F:\Program Files\Apache Software Foundation\Apache2.2\htdocs\core\modules\news\news.php on line 45 or Warning: date() [function.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 'America/Los_Angeles' for '-7.0/DST' instead in F:\Program Files\Apache Software Foundation\Apache2.2\htdocs\lib\skins\crystal\layout.tpl on line 117 I also got the following error to start out with but it seems to have corrected itself. 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/Los_Angeles' for '-7.0/DST' instead in F:\Program Files\Apache Software Foundation\Apache2.2\htdocs\core\classes\CodonCache.class.php on line 201 Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted August 13, 2010 Moderators Report Share Posted August 13, 2010 Hi, Have you set a timezone for your server? You can define this within the php.ini or failing that via apache. Quote Link to comment Share on other sites More sharing options...
Calfuray Posted August 13, 2010 Author Report Share Posted August 13, 2010 Thank you. That fixed the problem. Quote Link to comment Share on other sites More sharing options...
Mark J Posted October 29, 2011 Report Share Posted October 29, 2011 I have this same problem. where can i find the php.ini file? Quote Link to comment Share on other sites More sharing options...
Mark J Posted October 30, 2011 Report Share Posted October 30, 2011 Nevermind! This post fixed it. http://forum.phpvms.net/topic/4670-website-timezone/ Quote Link to comment Share on other sites More sharing options...
xhubix Posted August 10, 2014 Report Share Posted August 10, 2014 Hey Guys, I know this Post is very old, but i have the Solution of this Problem. Now u don´t need to add or create a php.ini File u only open up the local.config.php in your core Folder and edit following Line Find this in your local.config.php # See more details about these in the docs Config::Set('PAGE_EXT', '.htm'); # .htm is fine. You can still run PHP Config::Set('PILOTID_OFFSET', 0); # What # to start pilot ID's from Config::Set('PILOTID_LENGTH', 3); # Length of the Pilot ID Config::Set('UNITS', 'nm'); # Your units: nm, mi or km Config::Set('LOAD_FACTOR', '82'); # %age load factor Config::Set('CARGO_UNITS', 'kg'); and than insert a new line looks like this # See more details about these in the docs date_default_timezone_set('CET'); # Setup the Timezone "CET, UTC" Config::Set('PAGE_EXT', '.htm'); # .htm is fine. You can still run PHP Config::Set('PILOTID_OFFSET', 0); # What # to start pilot ID's from Config::Set('PILOTID_LENGTH', 3); # Length of the Pilot ID Config::Set('UNITS', 'nm'); # Your units: nm, mi or km Config::Set('LOAD_FACTOR', '82'); # %age load factor Config::Set('CARGO_UNITS', 'kg'); Now u have set the PHPVMS Timezone to Central European Time, u can also take the UTC Time.... This works and helps out to fix this problem on the Page of my friend - Hamburg Airways Virtual Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.