RangeError with invalid time value in eleventy. #3729
Unanswered
charmakeqalinle
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I took a look at the filter and learned that it throws when My next question then was when this happens. You're using the filter in one place so the template partial was easy enough to find. So a check using an |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Eleventy throw an error when I use a custom dateDisplay.js filter:
`export default v => {
const dateTime = new Date(v);
const options = { weekday: "long", month: "long", year: "numeric", day: "numeric" };
return new Intl.DateTimeFormat("en-US", options).format(dateTime);
};`
I created a custom repo for it.
Beta Was this translation helpful? Give feedback.
All reactions