Fixed problem with time not recording correctly on Postgres.