Add support for milliseconds

Some platforms, including Rails 4, have started to include milliseconds in datetimes.