Date Format

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
akronymn
Forum Newbie
Posts: 7
Joined: Wed Jul 02, 2008 12:31 pm

Date Format

Post by akronymn »

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!
akronymn
Forum Newbie
Posts: 7
Joined: Wed Jul 02, 2008 12:31 pm

Re: Date Format

Post by akronymn »

right so we do our own hosting here. This is actually an internal website so we only make it available on our local network. I figure the issue is the result of either a PHP or Apache setting that I just haven't been able to find. I guess it's time to start investigating Apache as the culprit unless anyone can think of another reason this is happening...
Post Reply