ClickHouse / ClickHouse/click-ui

DatePicker defaults to local TZ

Open
#654 0 comments 0 reactions 1 assignee Claimed by @hoorayimhelping View on GitHub
Dominant language
TypeScript
Stars
135
Forks
33
Avg merge
2d 13h
Merged PRs (30d)
19

Description

In the billing tab on sysadmin (see `OrgTabBillingTable`), we use this picker to feed a call to the API that relies on UTC dates.
When I run this in my browser on CEST TZ (Europe/Madrid), and pick Aug 2nd, the console shows the picked value:
```
{start: Sat Aug 02 2025 00:00:00 GMT+0200 (Central European Summer Time)}
```
When the code later takes this value and naively pulls the date as ISO date, it ends up getting the previous day because when my TZ hits midnight, the UTC time was still the day before.

I can adjust my code to handle this, but it would be great to have a parameter on the component to toggle between UTC and local time.

Ideally this would apply to the DateRangePicker as well (I'm currently using two DatePicker components until the range is available)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.