11thhour Posted February 6, 2016 Share Posted February 6, 2016 Hello, After logging into the CC control panel I see this message written across the top of the page, actually written over the top of whats there. Warning: strftime(): 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 /home/eleve8/public_html/includes/functions.inc.php on line 556 Can I change something in general settings or do I have to make changes to a file? (hope not) Thanks for any suggestions. Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 6, 2016 Share Posted February 6, 2016 Please visit the store admin, Store Settings, Advanced tab. In the Time and date section, choose the Country/City closest to you. (Do not concern yourself with UTC Offset just yet.) Quote Link to comment Share on other sites More sharing options...
11thhour Posted February 6, 2016 Author Share Posted February 6, 2016 These are the settings I have, I'm in USA/Rochester NY Should I change them to something else? Thanks! Time & Date Time Format: (See www.php.net/strftime) Time Offset: (Seconds - Used for servers in different timezone) Date Format: (See www.php.net/date) Sorry, this information was there before I sent it. %b %d %Y, %H:%M %p 0 l jS F Y Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 6, 2016 Share Posted February 6, 2016 In this case, you may be running a version of CubeCart that is not the latest in the version 6 family. You will need to make an edit to a file. In the file ini.inc.php: Find: // Automatically detect and assign the store url, and root relative path Add the following ABOVE it: date_default_timezone_set("America/New_York"); We will have better instruction once we know the exact version of CubeCart you are running. Quote Link to comment Share on other sites More sharing options...
11thhour Posted February 6, 2016 Author Share Posted February 6, 2016 CubeCart version 4.4.2 with updated admin.php and index.php files to 4.4.8 (your help in another post) Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 6, 2016 Share Posted February 6, 2016 For CC442, in ini.inc.php: Find near line 131: ## default encoding UTF-8 ini_set('default_charset','UTF-8'); //date_default_timezone_set('UTC'); Change the last line to: date_default_timezone_set('Amaerica/New_York'); Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted February 6, 2016 Share Posted February 6, 2016 America Quote Link to comment Share on other sites More sharing options...
11thhour Posted February 6, 2016 Author Share Posted February 6, 2016 I was able to change the code, saved it and it said successful. When I login to CC control panel I still see the warning at the top of the page. This is exactly how it went in: date_default_timezone_set('America/New_York'); Is there something that needs to be changed. I also just received this from my host. They didn't say where to add this so I haven't. Does this sound right to you and do you know where it should be added if at all? Thanks so much for your help! Please go ahead and and add : <IfModule mod_suphp.c> suPHP_ConfigPath /home/yourcPanelusername/public_html </IfModule> to your public_html/.htaccess file (please be sure to replace 'yourcPanelusername' in the example above with your actual control panel username) and please also add : date.timezone = "America/New_York" to your php.ini file. Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 6, 2016 Share Posted February 6, 2016 Adding to PHP.INI: date.timezone = "America/New_York" is the better way, but I did not know if you had that option. What I gave earlier should have worked (although, if I recall, there may have been an issue with CC3/4 getting data that bypassed ini.inc.php). Quote Link to comment Share on other sites More sharing options...
11thhour Posted February 7, 2016 Author Share Posted February 7, 2016 I'm not sure ware to add it in PHP.ini, this is all I see in that file. ;register_globals = Off ;zend_extension="/usr/local/IonCube/ioncube_loader_lin_4.4.so" ;zend_extension_ts="/usr/local/IonCube/ioncube_loader_lin_4.4_ts.so" ;[Zend] ;zend_optimizer.optimization_level=15 ;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3 ;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3 ;zend_optimizer.version=3.3.3 ;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so ;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 7, 2016 Share Posted February 7, 2016 At the top of the file will do nicely. You will notice that all the other statements have a semicolon in front -- that makes the statement a "comment", so do NOT do that with what you will be adding. Quote Link to comment Share on other sites More sharing options...
11thhour Posted February 7, 2016 Author Share Posted February 7, 2016 bsmither your the man! I'm all good now. Thank you very much for all your help the last couple days. I really appreciate it. If you ever make it to Rochester NY I owe you at the least a couple beers. Thanks again! Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 7, 2016 Share Posted February 7, 2016 Curious about your forum alias -- where does "11th Hour" come from? Quote Link to comment Share on other sites More sharing options...
11thhour Posted February 7, 2016 Author Share Posted February 7, 2016 My wife and I do everything (or at least use to) at the last minuet. "the eleventh hour" 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.