fixed issue where PG won't convert times to datetimes