Custom question "dataToString" expression missing report-timezone


I choosen the date November/17/2020 to make group,but it give me two label 2020.11.16 and 2020.11.17.
The native queries to the question:[{"$project":{"collegeid":"$collegeid","login_time~day":{"$let":{"vars":{"column":"$login_time"},"in":{"___date":{"$dateToString":{"format":"%Y-%m-%d","date":"$$column"}}}}},"login_time~default":{"$let":{"vars":{"column":"$login_time"},"in":"$$column"}}}},{"$match":{"$and":[{"login_time~default":{"$gte":"2020-11-16T16:00:00.000Z"}},{"login_time~default":{"$lt":"2020-11-17T16:00:00.000Z"}}]}},{"$project":{"_id":"$_id","___group":{"login_time~day":"$login_time~day"},"collegeid":"$collegeid"}},{"$group":{"_id":"$___group","count":{"$addToSet":"$collegeid"}}},{"$sort":{"_id":1}},{"$project":{"_id":false,"login_time~day":"$_id.login_time~day","count":{"$size":"$count"}}},{"$sort":{"login_time~~~day":1}}]

Focuse the "dateToString" expression,it should be:{"$dateToString":{"format":"%Y-%m-%d","date":"$$column","timezone":"Asia/Hong_Kong"}},in my location.

{
  "browser-info": {
    "language": "zh-CN",
    "platform": "Win32",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; InfoPath.3; Tablet PC 2.0; rv:11.0) like Gecko",
    "vendor": ""
  },
  "system-info": {
    "file.encoding": "GBK",
    "java.runtime.name": "Java(TM) SE Runtime Environment",
    "java.runtime.version": "1.8.0_261-b12",
    "java.vendor": "Oracle Corporation",
    "java.vendor.url": "http://java.oracle.com/",
    "java.version": "1.8.0_261",
    "java.vm.name": "Java HotSpot(TM) Client VM",
    "java.vm.version": "25.261-b12",
    "os.name": "Windows Server 2016",
    "os.version": "10.0",
    "user.language": "en",
    "user.timezone": "Asia/Shanghai"
  },
  "metabase-info": {
    "databases": [
      "h2",
      "mongo",
      "postgres",
      "sqlserver"
    ],
    "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": {
      "tag": "v0.37.2",
      "date": "2020-11-16",
      "branch": "release-x.37.x",
      "hash": "25e5f70"
    },
    "settings": {
      "report-timezone": "Asia/Hong_Kong"
    }
  }
}

Hi @Jerry
It sounds like you’re seeing this issue - please include a comment that can help with reproducing this:
https://github.com/metabase/metabase/issues/12842

@flamber
I will,thanks.