chrisnunes57 / hacs-opensource

The codebase for the HACS website! We use ReactJS for the frontend and Node/Express for the backend.
https://texashacs.org
8 stars 3 forks source link

Change dates in api calls to be user provided and then default to system time #42

Closed j-palos closed 4 years ago

rquinones93 commented 5 years ago

Would you like me to change migrations so that Dates will be represented as a String of "Day/Month/Year" instead of the full Date object ie something like "2019-04-05 01:57:21"

or

Would you like me to just add a column to each table called date that adds the String I mentioned above, still keep 'createdAt' as the usual new Date()- the date table could then be updated with whatever value it may need, but createdAt will stay the same.

Which one would you rather I do? Honestly I'm leaning towards the latter.

j-palos commented 5 years ago

Leaning to the latter, but I'm concerned about being able to easily sort/filter by dates when not using actual date datatypes in sql. I guess you might know more about that.