# PHP+MySQL: time zone problem

**URL:** <https://forum.kirupa.com/t/php-mysql-time-zone-problem/200461>\
**Category:** programming\
**Created:** [September 12, 2006, 2:08pm UTC](https://forum.kirupa.com/t/php-mysql-time-zone-problem/200461 "2006-09-12T14:08:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zero\_one1](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zero_one1/32/948_2.png) [@zero\_one1](https://forum.kirupa.com/u/zero_one1)\
**Post date:** [September 12, 2006, 2:08pm UTC](https://forum.kirupa.com/t/php-mysql-time-zone-problem/200461/1 "2006-09-12T14:08:49Z")

</div>

I need to save a date in my website, (using PHP+MySQL)… problem is that the server is set to -10hours from my time zone (i’m at CET), and i can’t change the time on the server (it’s a shared hosting from godaddy).

code i’m using to get date+time is: $newDate = date(“d-m-Y, H:i”);

any help to how i change save the day and time according to my time zone is extremely appreciated.

Regards,

Matt
