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

Issue with hour (over 1 hour) .fromNow() vs .twitter() #13

Open
austb25 opened this issue Jan 26, 2015 · 1 comment
Open

Issue with hour (over 1 hour) .fromNow() vs .twitter() #13

austb25 opened this issue Jan 26, 2015 · 1 comment

Comments

@austb25
Copy link

austb25 commented Jan 26, 2015

Hi there,

When I am using the .fromNow(); function in moment.js (for example, it returns "2 hours ago"), I get the correct amount of hours ago a tweet was posted, but when I use .twitter() instead, it returns the incorrect amount of hours (Instead of returning "2h" it returns "1h"). The tweets are from different feeds posted in different timezones and I convert the timestamps to UTC. Any advice on how to fix this?

Thanks!

@hijonathan
Copy link
Owner

Hey @austb25. Any chance you could create a jsfiddle to replicate the issue? If you have one of the timestamps, you should be able to create a moment instance and log the output of both methods.

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

2 participants