Date Format
Posted: Fri Mar 06, 2009 3:24 pm
Hi all,
So here's a frustrating detail I've spent to many hours trying to fix. I recently moved a website from
PHP 4.3.6
apache 1.3.29
to
PHP 5.2.4
apache 2.2.11
The website is backed by MSSQL but we kept with the same version since we'll soon be migrating to MySQL. The issue at hand though is that my dates are all being displayed oddly. If I have mssql.datetimeconvert set to on in PHP.ini then my dates come back with French month names and in European format. If I have it set to off then the dates come back as yyyy-mm-dd hh:mm:ss. These are both true regardless of how date.timezone is set in PHP.ini.
What I want and what I get on the old site still is this format "Mar 3 2009 4:26PM". Within the site itself the only changes I've made are to update a couple config variables to adjust their paths to reflect the new directory structure. This leads me to beleive that I'm missing an environment type variable in PHP or Apache (or mssql too i suppose).
Thanks in advance for any advice!
So here's a frustrating detail I've spent to many hours trying to fix. I recently moved a website from
PHP 4.3.6
apache 1.3.29
to
PHP 5.2.4
apache 2.2.11
The website is backed by MSSQL but we kept with the same version since we'll soon be migrating to MySQL. The issue at hand though is that my dates are all being displayed oddly. If I have mssql.datetimeconvert set to on in PHP.ini then my dates come back with French month names and in European format. If I have it set to off then the dates come back as yyyy-mm-dd hh:mm:ss. These are both true regardless of how date.timezone is set in PHP.ini.
What I want and what I get on the old site still is this format "Mar 3 2009 4:26PM". Within the site itself the only changes I've made are to update a couple config variables to adjust their paths to reflect the new directory structure. This leads me to beleive that I'm missing an environment type variable in PHP or Apache (or mssql too i suppose).
Thanks in advance for any advice!