Metabase Relative Date Today Value

Hi I have a query

select * from my_report
where 1 = 1
[[and {{order_date}}]]

To get current date time is

select now() from dual

This is now 4 Sept 2020, 3AM

If I execute above query on metabase using single date (calendar) if I choose 4 Sept it is correct not to show any data yet because it is still 3AM anyway.

If I execute above query on metabase using relative date and choose “Today” why it shows yesterday data?

Any help is appreciated.

Hi @eric.halim
Please post “Diagnostic Info” from Admin > Troubleshooting, and which database you’re querying.
Timezones are some of the most complicated parts of Metabase. There’s a longer troubleshooting page:

“browser-info”: {
“language”: “en-US”,
“platform”: “Win32”,
“userAgent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36 Edg/85.0.564.44”,
“vendor”: “Google Inc.”
“system-info”: {
“file.encoding”: “UTF-8”,
“”: “OpenJDK Runtime Environment”,
“java.runtime.version”: “11.0.7+10”,
“java.vendor”: “AdoptOpenJDK”,
“java.vendor.url”: “”,
“java.version”: “11.0.7”,
“”: “OpenJDK 64-Bit Server VM”,
“java.vm.version”: “11.0.7+10”,
“”: “Linux”,
“os.version”: “4.15.0-72-generic”,
“user.language”: “en”,
“user.timezone”: “GMT”
“metabase-info”: {
“databases”: [
“hosting-env”: “unknown”,
“application-database”: “h2”,
“application-database-details”: {
“database”: {
“name”: “H2”,
“version”: “1.4.197 (2018-03-18)”
“jdbc-driver”: {
“name”: “H2 JDBC Driver”,
“version”: “1.4.197 (2018-03-18)”
“run-mode”: “prod”,
“version”: {
“date”: “2020-05-28”,
“tag”: “v0.35.4”,
“branch”: “release-0.35.x”,
“hash”: “b3080fa”
“settings”: {
“report-timezone”: “Asia/Bangkok”

Latest release is 0.36.4
You should not use H2 in production:
You are likely seeing one of these issues - upvote by clicking :+1: on the first post of the issue

Yes @flamber thankyou we are planning to migrate to mysql soon.