ruby sends seconds, js expects millis for dates