PostgreSQL 9.2 JDBC driver uses client time zone?

前端 未结 5 1621
遥遥无期
遥遥无期 2020-12-09 09:38

I\'ve run into an interesting challenge using a PostgreSQL database with the PostgreSQL JDBC driver. It seems that the latest version of the driver, 9.2, uses the client

5条回答
  •  北海茫月
    2020-12-09 10:15

    I don’t know JasperReports, but generally speaking, using the JSR-310 (Java 8) date/time types (supported by JDBC 4.2) should work without having to worry about time zone mismatches between database server and client.

    See Using Java 8 Date and Time classes in the PostgreSQL JDBC driver documentation.

提交回复
热议问题