Background
My business website is using an appointments scheduler/shopping cart called VikAppointments so my dates/times are very important for smooth business operation.
My Timezone is Central European Time Zone UTC+01:00.
Problem
I am on a shared hosting plan with Hostgator and they have my shared server time set to America/Chicago | 2016-04-22 10:54:31 CDT
I tried setting my Joomla time to Central European Time Zone but when I go into VikAppointments the default Timezone is still set as
The documentation says the following:
Current Default Time Zone The default Timezone set on the php.ini configuration of your server. If this value doesn't correspond to the local area of your business, you should contact your hosting provider.
However hostgator says this about Timezones on shared accounts:
The server clock is set to Central Standard Time (CST). While you cannot change the time on a shared server's clock, you can change the time zone which is displayed by using a PHP script.
Question
Is there another way (perhaps adding some PHP to one of my root directory files?) to set my Timezone so that it will show up correctly in my Joomla Extensions?
Very grateful here for any heeeelp! :-)
update:
I have tried a whole host of things
Currently I have the following code added to my .htaccess file in the public_html directory...
## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
SetEnv TZ Europe/Paris
## End - Custom redirects
But it changes nothing (and I have Apache ReQriting turned ON).
I tried the answer below for the .htaccess (I cant access my php.ini file because I am on shared hosting!!) and it gives me 500 internal errors.
This is incredibly difficult!
update II and solution!
Well that was complicated but it works.
Steps I took:
1 - Created a new php.ini file and added it to my home root folder. 2 - Added the following code:
date.timezone = Europe/Paris
3 - Important: updated my public_html/.htaccess folder with the following code:
<IfModule mod_suphp.c>
suPHP_ConfigPath /home3/username_here
<Files php.ini>
order allow,deny
deny from all
</Files>
</IfModule>
I recommend reading the Hostgator article on php.ini: support.hostgator.com/articles/what-is-php-ini
And voila. Thanks so much for your help!!