1

My MySQL database is saving the time users register on my website using CURRENT_TIMESTAMP. THe thing is that it is the hosts timezone which is completely different from the one the website is used in. Is there any way to change the timezone in MySQL?

pnuts
  • 58,317
  • 11
  • 87
  • 139
Kriss0612
  • 57
  • 1
  • 10

1 Answers1

1

To set a value for it use either one:

SET time_zone = 'Europe/Helsinki';
SET time_zone = "+00:00";
SET @@session.time_zone = "+00:00";
Payer Ahammed
  • 887
  • 1
  • 5
  • 16