You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
If you take some JSON from twitter and pass the created_at property as a string to humaneDate, it will fail to adjust to your time zone.
However, if you pass it a date object it will work.
E.g.,
created_at: "Fri Jan 27 18:40:26 +0000 2012"
Fails: humaneDate("Fri Jan 27 18:40:26 +0000 2012") -> 6 Hours Ago
Pass: humaneDate(new Date("Fri Jan 27 18:40:26 +0000 2012") -> 1 Minute Ago