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
  • 184,866
  • 48
  • 414
  • 792
I'll-Be-Back
  • 9,833
  • 34
  • 95
  • 199

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,405
  • 10
  • 60
  • 80
0

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

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