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

Deprecation warning - value provided is not in a recognized RFC2822 or ISO format #161

Open
Benoit1980 opened this issue Sep 7, 2021 · 0 comments

Comments

@Benoit1980
Copy link

Hi all,

I am getting a deprecation warning on this:
{{ item.created_at | moment("from", "now", true) }}

value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions.

Based on this post:

The solution would be to set the output format to "DD-MM-YYYY"

But how can you do this with the "from" and "now"? Are you allowed to pass a fourth parameter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant