PostgreSQL 9.2 JDBC driver uses client time zone?

前端 未结 5 1634
遥遥无期
遥遥无期 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:32

    Just in case others struggle with this - you can edit the "conf" file that launches SQLDeveloper and add the following line :

    AddVMOption -Duser.timezone=UTC
    

    I found this file on my machine at :

    /opt/sqldeveloper/ide/bin/ide.conf
    

    Thanks to @a_horse_with_no_name for pointing me in the right direction with a comment in one of the other answers

提交回复
热议问题