panela Posted September 6, 2013 Posted September 6, 2013 Good evening team helionet. I'm still having a problem related to the time of my project. I did as taught our moderator Ice and failed I created a file. htaccess file in public_html with SetEnv TZ timezone and did not work. I know that web hosting is free, but I wonder if it could be changed the timezone in cpanel whm server.my timezone is America / Sao_Paulo.My GMT - 3. I would be grateful if it were possible, because I've tried everything and not getting any results. My project is very important to my knowledge My HelioHost username: panela Server :Stevie Domain: linkslegais.tk Thanks team Heliohost.
Ice IT Support Posted September 6, 2013 Posted September 6, 2013 The code SetEnv TZ America/Sao_Paulo (Be sure there are no spaces between the forward slash by the way) will only affect the environment for your web pages and PHP, Python, and CGI scripts. It does not affect cPanel/ WHM or cron. At this time it is not possible to change the default timezone through cPanel, and I am not sure if this feature will be added in the future since most other users get by fine with the .htaccess solution.
panela Posted September 6, 2013 Author Posted September 6, 2013 hello ice. I did all the tests and it did not work. It would be possible to change the file "php.ini" server, changing the current: date.timezone = UTC to date.timezone = America / Sao _Paulo ?? Thanks Ice
Byron Posted September 6, 2013 Posted September 6, 2013 Where on your site are you not seeing the correct time after making the changes Ice posted? We're not changing the server time to match your location.
panela Posted September 6, 2013 Author Posted September 6, 2013 Hello Byron. The problem that happens in my project is the following: When I release an article on my site from 0 hours of my local time, the article comes out with yesterday's date as the host heliohost works with Pacific Time. I've done tests with host in Brazil working with the time America / Sao_Paulo and article out correctly.The problem is not in the time of the site but in horario de approval of articles. Thanks he only way I'm able to approve my articles is freeing them from america 4:00 / Sao_Paulo, which would be the horario de 0 hours Pacific Time. I'm losing 4 hours and access my readers.
Krydos Posted September 7, 2013 Posted September 7, 2013 Does this help? http://ellislab.com/expressionengine/user-guide/cp/admin/localization_settings.html
panela Posted September 7, 2013 Author Posted September 7, 2013 Krydos thanks for the help, but this software does not change the status of my project.The problem is in the heliohost timezone, which is Pacific time.To solve, only change the file "php.ini" my account. I do not know if it is possible on the server of you. You have to configure php to my account?? As regards the timezone?? I did another project with the same script in a host in Brazil and the result was expected, because the server uses the following brasileiro timezone in php.ini:date.timezone = "America / Sao_Paulo"
Ice IT Support Posted September 7, 2013 Posted September 7, 2013 If you can't change the timezone in your software settings or use your hand-written code, then you'll have to use http://php.net/manual/en/function.date-default-timezone-set.php I was under the impression that .htaccess would take care of that.
panela Posted September 7, 2013 Author Posted September 7, 2013 Hello Heliohost team. Has not solved the problem One question; Voce would have how to modify the php from my account As in the example photo: http://i.imgur.com/Zo9Ri4A.png
Recommended Posts