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

[BUG]:Drizzle Studio shows converted UTC time for timestamp array columns #4041

Open
1 task done
aditya-kumarr opened this issue Jan 30, 2025 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@aditya-kumarr
Copy link

aditya-kumarr commented Jan 30, 2025

Report hasn't been filed before.

  • I have verified that the bug I'm about to report hasn't been filed before.

What version of drizzle-orm are you using?

^0.36.0

What version of drizzle-kit are you using?

^0.27.1

Other packages

No response

Describe the Bug

I have these three columns
javascript

  availableFrom: timestamp("available_from").notNull(),
  availableTill: timestamp("available_to").notNull(),
  unavailableDates: timestamp("unavailable_dates")
    .array()
    .default([])
    .notNull(),

When I enter the same date "2025-01-29T18:30:00.000Z", the studio shows "2025-01-29T18:30:00.000Z" in the case of first two columns but for the array one it shows "2025-01-29T13:00:00.000Z" which is the UTC version of original date + my timezone (given you ignore the Z)

my column is not supposed to store timezones which is correct as I've verified with other clients and cli, Only the drizzle studio is showing the incorrect dates

Image

Even though nothing is breaking it's still a bit confusing and would be better if it showed the date as it was stored.

@aditya-kumarr aditya-kumarr added the bug Something isn't working label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant