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

Date isn't right! #46

Open
ryankert01 opened this issue Aug 25, 2022 · 0 comments
Open

Date isn't right! #46

ryankert01 opened this issue Aug 25, 2022 · 0 comments

Comments

@ryankert01
Copy link

ryankert01 commented Aug 25, 2022

const rs = await parse("https://blog.ryankert.cc/atom.xml");
    fs.writeFile("./assests/test.json", JSON.stringify(rs), err => {
      if(err) {
          console.log(err);                
      }
  }) 

It returns 3 items (post), but the Date of the three objects is the same, which is definitely wrong in its rss feed.

"items": [
    {
      "published": 1661450424213,
      "created": 1661362853489,
      ...
    },
    {
      "published": 1661450424213,
      "created": 1661362853489,
      ...
    },
    {
      "published": 1661450424213,
      "created": 1661362853489,
      ...
    }
]
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

Successfully merging a pull request may close this issue.

1 participant