Hi,
I have this in my php.ini:
date.timezone = “America/Kentucky/Louisville”
When I echo: echo date(“Y-m-d H:i:s”);
I get: 2012-10-19 09:46:12
But my real time is: 2012-10-19 05:46:12
How come it’s not correct??
Hi,
I have this in my php.ini:
date.timezone = “America/Kentucky/Louisville”
When I echo: echo date(“Y-m-d H:i:s”);
I get: 2012-10-19 09:46:12
But my real time is: 2012-10-19 05:46:12
How come it’s not correct??
What date/time does the server think it is?
How many php.ini files are there on that machine?
Are you using CLI PHP at all?
I’m not sure. I know at least two but one I never mess with because the “main” one I think overides it.
I put this at the top of my page: date_default_timezone_set(‘America/Kentucky/Louisville’);
and that fixed the time (at least for that page.
I think what I need to do is set the time in .htaccess because that way it will be set when I move to a real server.