pavelk2 / social-feed

JavaScript plugin that shows a user feed from the most popular social networks
http://pavelk2.github.io/social-feed-example/
MIT License
961 stars 303 forks source link

Invalid date for Twitter feed #249

Open Hypocrite opened 7 years ago

Hypocrite commented 7 years ago

I am getting Invalid date printed for Twitter posts when using the date value with localized date. Facebook and Instagram work fine.

Searched through the old issues but only found similar issues with Internet Explorer. I get the same problem both with Chrome and Firefox.

Downloaded the latest version of the script and using following versions of the other libraries: https://cdnjs.cloudflare.com/ajax/libs/dot/1.1.0/doT.min.js https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.17.1/moment.min.js https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.17.1/locale/fi.js

Codebird version is 3.0.0-dev.

Anyone else had similar issues?

Hypocrite commented 7 years ago

After digging around a moment I noticed that removing the localized version of moment fixes the problem.

jcbcrn commented 6 years ago

Which files are you removing?

Hypocrite commented 6 years ago

If I remember correctly, I just removed the link to https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.17.1/locale/fi.js.