try to fix postgresql date format bugp