stockpile-co / api

The API for Stockpile, an app that manages stuff for organizations.
0 stars 1 forks source link

Allow ISO 8601 date format in DB #105

Closed emroussel closed 7 years ago

AdamVig commented 7 years ago

There is no clean built-in way in Knex.js or in the underlying MySQLJS library to transform incoming and outgoing datetimes between formats. I could change the columns to varchar and store an ISO 8601 string, but then I would lose the ability to use any of the built in MySQL datetime functionality.

@emmanuelroussel Would it be simple to change the datepicker's format to YYYY-MM-DD in the front end?