Periksa zona waktu basis data MySQL
SELECT @@system_time_zone as tz;
CodePadding
SELECT @@system_time_zone as tz;
#The query below returns the timezone of the current session.
select timediff(now(),convert_tz(now(),@@session.time_zone,'+00:00'));
SET GLOBAL time_zone = '+8:00';
SET GLOBAL time_zone = 'Europe/Helsinki';
SET @@global.time_zone = '+00:00';
# SET ON /etc/my.cnf
default-time-zone='+00:00'