ruby: truncate milliseconds in Date/Time objects

This confuses JRuby for some reason.

See details in https://github.com/killbill/killbill-java-parser/issues/3

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>