score:10

Accepted answer

This probably isn't the best way to do this, but I've been doing:

data: <%= @orders.map{ |f| [f.date.to_datetime.to_i, pdd.field_5x5 ] }.inspect %>,

...which expresses the date in seconds.


Related Query

More Query from same tag