I am working on a project right now and I am using the NOW() function to get the exact time when users make a reservation, it works fine on my local machine but after I uploaded it on my web host and when I tested it, it showed a different time! I thought maybe it is getting the time from the server but how can I change that server time (If I am right) and make it more similar to my clock?
Thank you for your time and help.
Use
date_default_timezone_set()to set your PHP timezone. Andmysql_query("SET time_zone = '...'")to set the MySQL timezone.But I can’t help you with the wildly inaccurate clock, you will need to ask them to fix it.