Table of Contents
The timezone on SiteGround’s servers is CST. This is a global setting which cannot be changed.
1) Modify the MySQL NOW() function.
2) Selecting the current date/time:
SELECT NOW();
If you want to add 2 hours to the result,
3) Use the following syntax:
SELECT DATE_ADD(NOW(), INTERVAL 2 HOUR);
if you want to subtract 2 hours from the server timezone,
4) Use this query:
SELECT DATE_SUB(NOW(), INTERVAL 2 HOUR);
Using DATE_SUB and DATE_ADD, you can modify the query result to fit your specific needs.
What Is Instagram Marketing? Instagram Marketing includes using the platform to advertise your business or personal brand to increase visibility,…
Ah, the joys of building a website! Picture this: You're sitting there in your pajamas, coffee in hand, ready to…
Are you feeling like your website is running in slow motion? It can be frustrating when your online presence doesn't…
Are you ready to take your online store to the next level? Whether you're running a PrestaShop or OpenCart platform,…
Picture this: your website is like a fabulous party happening in the darkest corner of the internet, but nobody's showing…