Hmm, a couple of things went wrong here :) I assumed that `test.duration` was in milliseconds, since that's the standard unit in javascript.

Also, `1000ms === 1s` so to convert from seconds to milliseconds we need to multiply it with `1000`, since it takes `1000ms` to make up `1s`. Heh, converting between time units is always a pain.

The correct code should, I think, be `obj.duration_ms = test.duration * 1000`.