covid-tracker-material-ui-react icon indicating copy to clipboard operation
covid-tracker-material-ui-react copied to clipboard

Fix data for 3 month and 1 month graphs

Open BhavyaCodes opened this issue 3 years ago • 1 comments
trafficstars

Currently 3 months data is calculated from current date till current date - 90 days. but since covid19india has stopped supporting their api, only data till 31st October 2021 is available. image image

Changes that need to be made is last 3 months data should be shown for last 90 days with last day being 31st october. Same thing for 1 month with last day being 31st october

BhavyaCodes avatar Jan 18 '22 07:01 BhavyaCodes

I've solved this bug by passing 31st october 2021 (the so called current date) to the Date constructor you call to get the current date

for more information https://github.com/BhavyaCodes/covid-tracker-material-ui-react/pull/37

swaroopRajwal avatar Feb 06 '22 05:02 swaroopRajwal