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.
Thanks

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:
https://www.metabase.com/docs/latest/troubleshooting-guide/timezones.html

{
"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",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.7+10",
"java.vendor": "AdoptOpenJDK",
"java.vendor.url": "https://adoptopenjdk.net/",
"java.version": "11.0.7",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.7+10",
"os.name": "Linux",
"os.version": "4.15.0-72-generic",
"user.language": "en",
"user.timezone": "GMT"
},
"metabase-info": {
"databases": [
"mysql"
],
"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"
}
}
}

@eric.halim
Latest release is 0.36.4
You should not use H2 in production:
https://www.metabase.com/docs/latest/operations-guide/migrating-from-h2.html
You are likely seeing one of these issues - upvote by clicking :+1: on the first post of the issue
https://github.com/metabase/metabase/issues/10824
https://github.com/metabase/metabase/issues/11819

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