Possible solutions of your questions

  hosting
<< Previous       How to change server time

Question: Hello,On the website put script date(`d.m.Y / H:i:s`) but shows the wrong time. I live in Uzbekistan and want to time the website showed my timezone. To do this in .recorded htaccess php_value date.timezone Asia/Tashkent but your server gives error 500 INTERNAL ERROR. But on the local server gives an error.What to do?
Answer:

Hello.

In the file .htaccess should not be of type php settings php_value, php_flag. php is running as cgi and the parameters entered in the php files.ini

 

Question: So, if I write in php.ini this code: php_value date.timezone Asia/TashkentСѓ me everything will be OK?
Question: No. I tried. Gives a bunch of errors
Answer:


please Check now.

Question: Oh, thank you! A miracle, I have now correctly shows the time :) As You set up, tell me if not a secret?
Answer:

In the php file.ini in the root account:

; Defines the default timezone used by the date functions
date.timezone = \"Asia/Tashkent\"

Question: Thank You so much for your promptness! I do not regret that chose Erahost. Your service at the highest level.
Answer: Since the issue has been resolved, we are closing this ticket. In case, in Your opinion, an unsatisfactory answer, You can always create a new one or reopen this ticket with my answer.

<< Previous