How to change DBeaver timezone / How to stop DBeaver from converting date and time

前端 未结 6 1365
终归单人心
终归单人心 2020-12-14 07:34

When I use DBeaver with Cassandra, it shows an offset of +01:00 even though the data is stored in Date or Times formats, that don\'t have any timezones. This results in some

6条回答
  •  青春惊慌失措
    2020-12-14 08:32

    On Mac

    1. Go to Finder > Applications
    2. Right click on DBeaver and select Show Package Contents
    3. Open Contents\Eclipse\dbeaver.ini
    4. After the -vmargs line, add this: -Duser.timezone=UTC
    5. Save file and restart DBeaver

    Limitation: You’ll have to redo this for every version upgrade.

    Windows

    1. Go to DBeaver install directory C:\Program Files\DBeaver
    2. Open dbeaver.ini
    3. After the -vmargs line, add this: -Duser.timezone=UTC
    4. Save file and restart DBeaver

    Source: This blog

提交回复
热议问题