Discrepancy when pulling column of 'date' type from PostgreSQL