I am using GoDaddy webserver of shared hosting.I have a mysql database in which there are 2 columns which contains datatype date.. I am using following sql queries. From query1 I am getting Expired records & from query2 getting ongoing records. Problem is because webserver uses it's local time so as per indian time zone I am not getting accurate records. Is there any way to fix problem in query.
Query1
SELECT * FROM offers WHERE startDate <= CURRENT_DATE AND endDate <= CURRENT_DATE
Query2
SELECT * FROM offers WHERE startDate <= CURRENT_DATE AND endDate >= CURRENT_DATE