quirkey / resque-status

resque-status is an extension to the resque queue system that provides simple trackable jobs.
MIT License
515 stars 169 forks source link

Fix the "NaN days ago" for "Last Updated" in /statuses page #70

Closed databus23 closed 12 years ago

databus23 commented 12 years ago

At least in my environment (ruby 1.9.2) Time.now.to_s produces a string like: 2012-05-11 18:07:48 +0200

In Safari this is not parsable with new Date():

 > new Date('2012-05-11 18:07:48 +0200');
 > Invalid Date

In general the timestamp format of Time.now.to_s differs between ruby versions, so I think its best to enforce a specific format that is known to work in all browser.

ronen commented 12 years ago

+1

cheers

mose commented 12 years ago

+1 too

with ruby 1.9.3 got same "NaN days ago" on firefox and chrome

quirkey commented 12 years ago

Thanks!