Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Postgres and Oracle) Advanced Copy as JSON, wrong value when copying date-like types #32664

Open
J-Porras opened this issue May 14, 2024 · 3 comments

Comments

@J-Porras
Copy link

Description

When inspecting the value of a record copied using the option "Advanced Copy" > "Copy as JSON" certain date types (Oracle) and timestamp (Postgres) do not represent the information stored in the database

The table is mirrored in Postgres and Oracle

DBeaver Version

Community Edition Version 24.0.4.202405051837

Operating System

Windows 10 x64

Database and driver

Database: Postgres 14.11
Driver Name and version: PostgreSQL JDBC Driver

Steps to reproduce

As an example in Postgres:

We have certain table with this row

ALTER TABLE "OSC"."REF_TERRITORIES" ADD sys_last_updated_date timestamp NULL;

The value of the cell is 2024-05-13 19:35:46.807
image

I query the table using the Dbeaver view, then I select the whole row, next I use the option "copy as JSON"

image

image

Then I paste the json in any editor and I get the wrong time
image

Additional context

SSL: Use SSL ON, SSL mode: allow

@E1izabeth
Copy link
Member

Please try checking this setting to disable client-side formatting. Does it help?
image

@J-Porras
Copy link
Author

Hello, I tried checking the option, then exporting the data to a .json and the clipboard and both options kept the wrong date times.
Note: The copied time does not correspond to the local machine time
image

Database value

image

Copied value

image

@Destrolaric
Copy link
Member

Thanks for the report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants