Exercise Tracker - Date problem, please help!

App: https://eksercise-trakker.herokuapp.com/
Github: https://github.com/EricHeredia/exercise-tracker

So I’m pretty much finished, however I’ve run into a problem and after an entire day I still can’t figure it out.

When adding an exercise, when the date field is left blank it should automatically input the current date as the date. However it seems to be a day off from the timezone I’m at. I have no idea why I can’t get it to work and any advice would be greatly appreciated. It works fine when testing locally, however once it’s up and running on Heroku is when I run into the problem.

Heroku uses UTC time.
There is a getTimezoneOffset function that gives you difference between UTC and local time in minutes.
You could save unix timestamp and user’s timezone in db and not formatted date string.