Help with retrieving datetime field in PHP from MySQL

Hi, my MySQL table has a field called submitted_date that is a "datetime" type.  My problem is the web host's time is 1 hour ahead of our local time, so it's storing it one hour ahead of the time the user actually submitted it.  I called them and they said I can't do anything in terms of modifying a php.ini file to fix it.

In my PHP file, when the user submits the form, I set the "submitted_date" field to now() when it's inserted into MySQL.  I retrieve the date using this line:

SELECT name,  DATE_FORMAT(submitted_date, '%M %e  %l:%i%p') as newdate.....

It then shows the time as being 1 hour ahead of the actual submitted time.  I know there must be an easy way to fix this so it shows the true time it was submitted by the user, but I can't figure it out. Thank you.
Jason92sAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DerokorianCommented:
SELECT name,  DATE_FORMAT(DATE_SUB(submitted_date,INTERVAL 1 HOUR), '%M %e  %l:%i%p') as newdate
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jason92sAuthor Commented:
Thank you!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.