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.
Due to growing digitalization, Email Communication has become the backbone of professional interactions. Yet, surprisingly, many professionals struggle to craft…
As the digital landscape continues to evolve, securing your website has never been more crucial. SSL, or Secure Sockets Layer,…
As a web designer and web developer your experience must have reached to new height, right? Further, you need to…
In today's digital landscape, timing is everything. Whether you're a social media manager, business owner, or content creator, the success…
Are you a website owner? Maintaining the website is the prime concern for any website owner. Yes, it’s equally important…