Maybe this is a user issue (aka, my fault) but I'm trying to convert a date "2012-05-10 13:02:00 GMT" by using jQuery.timeago(2012-05-10 13:02:00 GMT) and all I get is NaN years ago?
2012-05-10 13:02:00 GMT
jQuery.timeago(2012-05-10 13:02:00 GMT)
NaN years ago
I'm using this date because it's what the Tumblr API spits out. The Tumblr API allows you use to use "timestamp" - The time of the post, in seconds since the epoch or "date" - The GMT date and time of the post, as a string.
"timestamp" - The time of the post, in seconds since the epoch
"date" - The GMT date and time of the post, as a string
How do I get this to work with the timeago plugin? Do I need to convert that GMT or timestamp before I use the timeago function? I'm lost and don't fully get what I'm doing wrong....
Added support for $.timeago to accept a millisecond UNIX epoch value
That did the trick! I had tried using timestamp earlier but I just forgot to multiple by 1000. Thanks for the very fast reply! I love the plugin! :)