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

TypeError: d.getUTCFullYear is not a function #59

Closed
natonnelier opened this issue Jun 15, 2017 · 4 comments
Closed

TypeError: d.getUTCFullYear is not a function #59

natonnelier opened this issue Jun 15, 2017 · 4 comments

Comments

@natonnelier
Copy link

Hi, I'm following the documents in https://www.npmjs.com/package/feed but i still keep getting this error:
TypeError: d.getUTCFullYear is not a function
Could this be related to a null object? Which might be the problem?

@fabionolasco
Copy link

Hi, I fixed that on my project by adding:
date: new Date(post.pubDate)

Hope it helps!

@QuanticPotatoes
Copy link

Hi !
Thx @fabionolasco !
I have also this error when i transformed my feed to Atom :
Now, it's fixed 😄 !
https://runkit.com/59958b7842151d0012cc155c/59958b7942151d0012cc155d

image

@dmead
Copy link

dmead commented Mar 25, 2018

this is still an issue.

anyone have luck fixing this? I'm trying date: new Date() and i've got no dice

@jpmonette
Copy link
Owner

If you set date, you must make sure to have some valid Date object assigned, otherwise Feed won't be able to process it correctly. Starting today, the codebase has been moved to TypeScript so hopefully it will be easier to flag for developers when types are wrong.

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

5 participants