Support timestamps without fractions of seconds

(as generated by heroku-postgres)