Filter yesterday to display today's query data;Filter today's value is null

image

Hi @Joesec
Post "Diagnostic Info" from Admin > Troubleshooting.
And the actual underlying database column type.
Timezones are difficult: https://www.metabase.com/docs/latest/troubleshooting-guide/timezones.html

Failed to resolve current issue according to website failure;

@Joesec I don't understand what you are saying.

  1. Post "Diagnostic Info" from Admin > Troubleshooting.
  2. What is the actual underlying database column type?

{
"browser-info": {
"language": "zh-CN",
"platform": "Win32",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "17.0.3+7",
"java.vendor": "Eclipse Adoptium",
"java.vendor.url": "https://adoptium.net/",
"java.version": "17.0.3",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "17.0.3+7",
"os.name": "Linux",
"os.version": "3.10.0-1160.53.1.el7.x86_64",
"user.language": "en",
"user.timezone": "Asia/Shanghai"
},
"metabase-info": {
"databases": [
"h2",
"postgres"
],
"hosting-env": "unknown",
"application-database": "mysql",
"application-database-details": {
"database": {
"name": "MariaDB",
"version": "10.7.4-MariaDB"
},
"jdbc-driver": {
"name": "MariaDB Connector/J",
"version": "2.7.5"
}
},
"run-mode": "prod",
"version": {
"date": "2022-06-13",
"tag": "v0.43.3",
"branch": "release-x.43.x",
"hash": "c9c7ef0"
},
"settings": {
"report-timezone": "Asia/Shanghai"
}
}
}

@Joesec So I'm guessing that your Postgres column is a TIMESTAMP instead of TIMESTAMPTZ, which means it's detected with UTC timezone.
https://github.com/metabase/metabase/issues/6259 - upvote by clicking :+1: on the first post

Change your underlying column type, or create a database View with converted column.