Fix for datetime with milliseconds

Rails 4 changed their datetime format to include milliseconds.