I am using XAMPP - PHP and MYSQL servers. When I tried to use following -
getRates(date(\'Y-m-d\')); function getRates($cDate) { $query = \"SELECT * FROM
Solved: but feeling stupid.
my local machine had the correct time however, time zone was incorrect. Changed the time zone and it worked. I don't understand why though. The time WAS CORRECT. Zone was not.