[4.2] PostgreSQL Date Format Includes Milliseconds

In ticket https://github.com/laravel/framework/issues/5612 a pull request was asked for.
This is just the patch of the original author, not tested in any way.