Im using ShadcnUI and Nextjs to built charts and in this code im getting dates and appointment counts, but i think for timezone reasons the date is always decrease by one day, i wanna use Brazil Sao Paulo (Brazilia) time zone, the data is passing with us format to frontend and storage in br format in database, how to fix my error with the date always decreasing one number?
i attatched the code and some prints of my data, the chart data showed, the database real data, and the api response. This code is in production so i need to solve this and i tried many things, if someone know please help me.