0

I have developed a website in PHP and MySQL. the website is for UK customers only to purchase products and stuff.

I've used NOW() function in the mySQL query to insert current date & time.

In PHP, I have included this in the header:

date_default_timezone_set('Europe/London');

Is there anything else I might have missed to setup UK Timezone properly?

hakre
  • 193,403
  • 52
  • 435
  • 836
I'll-Be-Back
  • 10,530
  • 37
  • 110
  • 213

2 Answers2

1

You can change the MySQL timezone using this: How to set MySQL to use GMT in Windows and Linux

And you could make sure your servers time zone is also set correctly.

Community
  • 1
  • 1
472084
  • 17,666
  • 10
  • 63
  • 81
0

You can set time zone from the following query in mySQL:

select name from mysql.time_zone_name;
Sebass van Boxel
  • 2,514
  • 1
  • 22
  • 37
RuchiS
  • 27
  • 4