Fix behavior of handling BC era dates.

BC era year is (astronomical year + 1) and starts from 1 BC.
Merge pull request #15521 from edogawaconan/fix_bc_postgres_master

Fix BC year handling in postgres