Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the code we store dates as: 


timestamp: new Date().toISOString();

In the data model:

timestamp:

{

type: 'string',

format: 'date-time' }, without saying format 'string'

}