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

Wrong Default value of TimeZone in the duckdb settings #1897

Open
ujaval403 opened this issue Oct 15, 2024 · 0 comments
Open

Wrong Default value of TimeZone in the duckdb settings #1897

ujaval403 opened this issue Oct 15, 2024 · 0 comments
Labels

Comments

@ujaval403
Copy link

What happens?

The TimeZone value in settings is in UTC+XXXX or UTC-XXXX which is not supported value in the timezone
so we are not getting expected values in query results.

https://duckdb.org/docs/sql/data_types/timezones.html

To Reproduce

Screen.Recording.2024-10-15.at.7.05.48.AM.mp4
install icu;
load icu;

CREATE or REPLACE TABLE events (
   id INTEGER,
   event_time TIMESTAMPTZ
);

insert into events values (1, epoch_ms(1680308400000)); -- 1 April 2023 12:20:00 AM UTC

select *, date_trunc('month', event_time) from events;

to check the current value

select * from duckdb_settings() where name='TimeZone';

Right Result after

set TimeZone = 'America/Los_Angeles';

select *, date_trunc('month', event_time) from events;

Browser/Environment:

129.0.6668.100

Device:

Mac OS

DuckDB-Wasm Version:

1.28.1-dev258.0

DuckDB-Wasm Deployment:

Custom

Full Name:

Ujaval Bhatt

Affiliation:

DevRev

@carlopi carlopi added the v1.2.0 label Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants