defunkt/resque — pull request #658 by derfred (2012-09-06 08:32:24+00:00)
Title: Relative dates are displayed as NaN in resque-web

The relative dates on resque-web all show up as "NaN days ago" for me. I have tracked the error down to the formatting of the run_at field in the job metadata submitted by Worker#working_on.

![Exhiibit A](http://strogatz.konvenit.com/NaN_in_resque_web.jpg)

The current implementation uses the format string "%Y/%m/%d %H:%M:%S %Z" which yields an output of the form "2012/09/06 10:14:10 CEST". That is not a format which is understood by the Date object in Javascript. I have changed the format string to "%Y/%m/%d %H:%M:%S %z" which produces "2012/09/06 10:14:10 +0200" as output.

I have verified this working in both Firefox 14 and Chrome 21.