Php_value date.timezone in htaccess

software development


Hi all :slight_smile:

i have add this line into my htaccess in my root directory…

php_value date.timezone Asia/Dubai

i except this to change my time to dubai time

but still date() give me los angles time

any ideas ?


PHP is running as CGI, so you can’t pass a php_value using .htaccess

Either set the value within your script or use a custom php.ini

Maximum Cash Discount on any plan with MAXCASH