@flamber, I'm facing the same issue.
The solution proposed by @heits didn't work for me because after the Metabase`s "query generator" generate the query, the time condition stands between parentheses, like in the example below:
WHERE (partner_id = '5123124-32e343d-5235-8e355329-9370cd503016'
AND time < timestamp "2021-03-26 00:00:00 Etc/UTC")
So when I add "AT TIME ZONE" after the parameter I get the following error:
I presume that the query generator build something like this:
WHERE (partner_id = '5123124-32e343d-5235-8e355329-9370cd503016'
AND time < timestamp "2021-03-26 00:00:00 Etc/UTC") AT TIME ZONE 'America/Sao_Paulo'
Which is obviously wrong.
I'm posting below the Diagnostic Info as requested, and the database where I'm querying is the Google BigQuery.
{
"browser-info": {
"language": "en-US",
"platform": "MacIntel",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.9.1+1-post-Debian-1deb10u2",
"java.vendor": "Debian",
"java.vendor.url": "https://tracker.debian.org/openjdk-11",
"java.version": "11.0.9.1",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.9.1+1-post-Debian-1deb10u2",
"os.name": "Linux",
"os.version": "4.19.0-14-cloud-amd64",
"user.language": "en",
"user.timezone": "Etc/UTC"
},
"metabase-info": {
"databases": [
"bigquery"
],
"hosting-env": "unknown",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "12.6"
},
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.2.18"
}
},
"run-mode": "prod",
"version": {
"date": "2021-03-03",
"tag": "v0.38.1",
"branch": "release-x.38.x",
"hash": "79ef63a"
},
"settings": {
"report-timezone": "America/Sao_Paulo"
}
}
}
Thank you all for sharing, guys, hope we get some fix for this soon, something like a "timezone picker" on the variables properties.