Coen Damen
Coen Damen

Reputation: 2109

MySQL date fetched with one hour behind from PHP

Hi please help me with this one. And dont downvote because I have done research, but did not find anything.

I have a weird issue where my MySQL datetime fields are in the correct DayLight saving times. But when I select them through PHP they are still in Winter time, meaning minus one hour.

How can I fix this?

UPDATE Timezone is GMT+1 which is correct. My MySql DB is also correct.

Upvotes: 0

Views: 264

Answers (1)

sebilasse
sebilasse

Reputation: 4618

This is not about mysql.

It is about your default php timezone settings.

see

http://www.php.net/manual/de/function.date-default-timezone-set.php

Upvotes: 1

Related Questions