gbdev / homebrewhub

A digital repository of of homebrews, patches, hackroms for old consoles. Provides community submission, tagging and rating features.
https://hh.gbdev.io
GNU General Public License v3.0
44 stars 9 forks source link

Dates should follow ISO 8601 #6

Closed tobiasvl closed 6 years ago

tobiasvl commented 6 years ago

The dates in dmg01/database should be parsed as ISO 8601 (2017-12-07) instead of the American date format (12/07/2017).

See also https://github.com/dmg01/database/issues/7

avivace commented 6 years ago

Makes sense. We will probably use Mongoose "Date" object so we will be able to make use of the sorting function on it, but the shown dates (frontend) and how they should be parsed from the JSON database can be arbitrary and we can adopt ISO 8601.

avivace commented 6 years ago

Done, we're using Moment to display date/time as the browser, while we require ISO 8601 formatted date in the database.