- Go to directory:
/usr/share/dbeaver
- Edit
dbeaver.ini
file - In that file add
-Duser.timezone=UTC
this line under-vmargs
tag - Save it and restart dbeaver.
- Enjoy with correct date without any date conversion.
Finally your dbeaver.ini
file will look like this:
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.551.v20171108-1834
-showsplash
--launcher.GTK_version
2
-vmargs
-XX:+IgnoreUnrecognizedVMOptions
--add-modules=ALL-SYSTEM
-Xms64m
-Xmx1024m
-Duser.timezone=UTC
Follow this link:
Run below commands and see the difference.
SELECT now();
SELECT now() AT time ZONE 'Asia/Kolkata'
Thanks!