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

前端 未结 6 1351
终归单人心
终归单人心 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:40

    DBeaver uses the time in the computer that is installed, so changing the clock and restarting DBeaver works. But there is a way to do it only for DBeaver instead.

    • Close DBeaver.
    • Go to the DBeaver shortcut. Probably it is here:

      C:\ProgramData\Microsoft\Windows\Start Menu\Programs\DBeaver

    • Right-click on it, choose Properties and in the Target box add -vmargs -Duser.timezone=UTC to the end, resulting in something like this:

      "C:\Program Files\DBeaver\dbeaver.exe" -vmargs -Duser.timezone=UTC

    • Start DBeaver and the times now appear in UTC.

提交回复
热议问题