adopted-ember-addons / ember-moment

MIT License
399 stars 122 forks source link

Non-working example in README #225

Closed muesli closed 7 years ago

muesli commented 7 years ago

The example

{{moment '12-25-1995' 'MM-DD-YYYY'}}

isn't working for me as intended. It just returns the input-string - which happens to return the expected result for this example, but won't work with other timestamps.

jasonmit commented 7 years ago

I am unsure what you are intending.

{{moment '12-25-1995' 'MM-DD-YYYY'}}

Currently returns:

Mon Dec 25 1995 00:00:00 GMT-0800 {{moment '12-25-1995' 'MM-DD-YYYY'}}
muesli commented 7 years ago

Sorry, I think I simply misunderstood the API - which isn't your fault, but moment.js's... or mine ;-)