Change/check timezone in php.ini for a wordpress website

Soldato
Joined
6 Nov 2004
Posts
5,778
Hi guys i'm a bit stuck with this one and google doesn't seem to give me clear instructions unless i'm too stupid to understand them!

Just trying to fix all issues/problems with my wordpress website and a developer of one of my plugins has said my timezone is set wrong in my php.ini.

All i'm wanting to do is identify where to find my php.ini and how to edit it to the correct timezone.
 
Soldato
OP
Joined
6 Nov 2004
Posts
5,778
Also what would I do exactly? (Assume i'm a total idiot and don't know anything).

Make a text file called php.ini and put the correct text into their and just upload to the root directory?
 
Soldato
OP
Joined
6 Nov 2004
Posts
5,778
So I download that first link rename it to php.ini and change line 915 and upload to root directory?

Will a default file not mess around with/change another other settings I may have?
 
Associate
Joined
4 Feb 2011
Posts
580
Location
Halifax
So I download that first link rename it to php.ini and change line 915 and upload to root directory?

Will a default file not mess around with/change another other settings I may have?

Possibly.

What control panel are one.com using? You could possibly try deleting all but that line and seeing if it overrides.

Have you had a look around the CP seeing if you can edit php.ini from there?

Can you browse the /etc/ folder?
 
Soldato
OP
Joined
6 Nov 2004
Posts
5,778
I just asked one.com support and they said you cannot change server timezone apparently... I cannot browse the /etc/ folder.
 
Associate
Joined
4 Feb 2011
Posts
580
Location
Halifax
I just asked one.com support and they said you cannot change server timezone apparently... I cannot browse the /etc/ folder.

Would've thought someone as big as one would allow you to do that...

Another fix could be to add the following to the top of your index.php file (after the opening tags of course)

PHP:
date_default_timezone_set("Europe/London");
 
Back
Top Bottom