adopted-ember-addons / ember-moment

MIT License
400 stars 122 forks source link

Documentation incorrect for environment settings #391

Closed Synforge closed 1 week ago

Synforge commented 1 year ago

In the documentation it seems to state that to change various defaults you should set 'moment' in your env, however it seems like instead this should be 'ember-moment' after reading the source (https://github.com/adopted-ember-addons/ember-moment/blob/master/src/services/moment.js#L23).

For example, this doesn't work:

moment: {
      outputFormat: 'YYYY-MM-DD HH:mm:ss',
},

But this does:

'ember-moment': {
      outputFormat: 'YYYY-MM-DD HH:mm:ss',
},
NullVoxPopuli commented 1 week ago

docs updated, thanks!