*8768* fix date conversion for PostgresSQL