Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hideAffix broken #299

Open
Redsandro opened this issue Feb 28, 2019 · 0 comments
Open

hideAffix broken #299

Redsandro opened this issue Feb 28, 2019 · 0 comments

Comments

@Redsandro
Copy link

Redsandro commented Feb 28, 2019

{{moment-from '2011-05-02' locale='en'}}
// 8 years ago

{{moment-from '2011-05-02' locale='en' hideAffix=true}}
// Invalid date
// Deprecation warning: value provided is not in a recognized RFC2822 or ISO format.

Expected: 8 years

Ember 3.7.3
ember-moment 7.8.1
ember-cli-moment-shim 3.7.1


Update

Workaround:

{{moment-from '2011-05-02' (now) locale='en' hideAffix=true}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants