Level 54
it may be the timezone different... try check the timezone
SELECT @@global.time_zone, @@session.time_zone;
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am trying to select now() from mysql and it gets time after 3 hours from now how to get the exact time .
I am working on server online
it configured to use system time zone
https://stackoverflow.com/questions/2934258/how-do-i-get-the-current-time-zone-of-mysql
Please or to participate in this conversation.