PostgreSQL: Timezone not properly handled under timestamp without timezone with correct database timezone setup #13400
Labels
.Backend
.Correctness
Database/Postgres
Difficulty:Hard
Misc/Timezones
Priority:P2
Average run of the mill bug
Querying/Processor
.Team/Querying
Type:Bug
Product defects
Describe the bug
In postgresql database with correct timezone set (SHOW TIMEZONE showing the intended timezone of the report), there is no way to properly set the report to run with the right timezone. Setting Report Timezone to the same timezone of the database does not help, it just all being interpreted as GMT.
Logs
To Reproduce
Expected behavior
Suggest timestamp without timezone should be interpreted as GMT always, then use the report timezone (even Database Default should be using SHOW TIMEZONE as a reference) to adjust the time of the report. Alternatively allow people to setup the database timezone for timestamp without timezone if we want this to be super flexible.
Information about your Metabase Installation:
Browser agnostic. Metabase Version 0.36.2 Community hosted inside docker
Severity
High - basically breaks all queries unless I build dataview to convert the timestamp. Also please be aware this is default behaviour for Ruby on Rails database, so meaning anyone use Ruby on Rails based DB on PostgreSQL are facing the same issue.
The text was updated successfully, but these errors were encountered: