Unable to create trend chart from Druid data

After upgrading Metabase from version 0.35.6 to version 0.38.3 trend chart stopped working with druid. In our table it's field timestamp:




Trend chart:

Field formatting:

also I noticed that group by year aggregation is working correctly. Others show the same error as above.

"browser-info": {
"language": "en-GB",
"platform": "MacIntel",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36",
"vendor": "Google Inc."
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.10+9",
"java.vendor": "AdoptOpenJDK",
"java.vendor.url": "https://adoptopenjdk.net/",
"java.version": "11.0.10",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.10+9",
"os.name": "Linux",
"os.version": "4.14.243-185.433.amzn2.x86_64",
"user.language": "en",
"user.timezone": "GMT"
"metabase-info": {
"databases": [
"hosting-env": "unknown",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "12.7"
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.2.18"
"run-mode": "prod",
"version": {
"date": "2021-04-01",
"tag": "v0.38.3",
"branch": "release-x.38.x",
"hash": "8332830"
"settings": {
"report-timezone": "UTC"

Hi @ppioro
Sounds like you're seeing this issue:
https://github.com/metabase/metabase/issues/12388 - upvote by clicking :+1: on the first post