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
Fix relative time display for failed jobs in Safari
Was displaying "NaN days ago" for relative time in Safari.
Safari cannot parse a date in the format '2010-05-10 16:24 -400',
but can parse '05/10/2010 16:24 -400'
Copy file name to clipboardExpand all lines: lib/resque/server/views/failed.erb
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,10 @@
22
22
<%else%>
23
23
<dt>Worker</dt>
24
24
<dd>
25
-
<ahref="<%=u(:workers,job['worker'])%>"><%=job['worker'].split(':')[0...2].join(':')%></a> on <bclass='queue-tag'><%=job['queue']%></b> at <b><spanclass="time"><%=Time.parse(job['failed_at']).strftime("%F %T %z")%></span></b>
25
+
<ahref="<%=u(:workers,job['worker'])%>"><%=job['worker'].split(':')[0...2].join(':')%></a> on <bclass='queue-tag'><%=job['queue']%></b> at <b><spanclass="time"><%=Time.parse(job['failed_at']).strftime("%D %T %z")%></span></b>
0 commit comments