Thank you very much for the quick reply. Here are the data requested.
The database is postgresql96-server-9.6.21-1PGDG
The database column type is timestamp.
Here is the sql created by metabase from the sql button.
SELECT "public"."sale_order_line"."id" AS "id", "public"."sale_order_line"."product_uom_qty" AS "product_uom_qty", "public"."sale_order_line"."company_id" AS "company_id", "public"."sale_order_line"."name" AS "name", "public"."sale_order_line"."product_id" AS "product_id", "public"."sale_order_line"."booking_end" AS "booking_end", "public"."sale_order_line"."booking_start" AS "booking_start", "public"."sale_order_line"."booking_state" AS "booking_state", "public"."sale_order_line"."price_subtotal_company_currency" AS "price_subtotal_company_currency"
FROM "public"."sale_order_line"
LEFT JOIN "public"."product_product" "product_product__via__product_" ON "public"."sale_order_line"."product_id" = "product_product__via__product_"."id"
WHERE ("public"."sale_order_line"."company_id" = 4
AND "public"."sale_order_line"."booking_state" = 'consumed' AND "public"."sale_order_line"."booking_start" >= date_trunc('week', CAST((CAST(now() AS timestamp) + (INTERVAL '-1 week')) AS timestamp)) AND "public"."sale_order_line"."booking_start" < date_trunc('week', CAST(now() AS timestamp)) AND (NOT (lower("product_product__via__product_"."name_template") like '%coach%')
OR "product_product__via__product_"."name_template" IS NULL) AND (NOT (lower("product_product__via__product_"."name_template") like '%ice%') OR "product_product__via__product_"."name_template" IS NULL) AND (NOT (lower("product_product__via__product_"."name_template") like '%ball%') OR "product_product__via__product_"."name_template" IS NULL) AND (NOT (lower("product_product__via__product_"."name_template") like '%cleaning%') OR "product_product__via__product_"."name_template" IS NULL) AND (NOT (lower("product_product__via__product_"."name_template") like '%maintenance%') OR "product_product__via__product_"."name_template" IS NULL))
LIMIT 1048575
Here is the screenshot of the question.
Here is the screenshot of the result. The datetime is in UTC. Need it to be +8
Here is the diagnostic info.
{
"browser-info": {
"language": "en-US",
"platform": "Linux x86_64",
"userAgent": "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0",
"vendor": ""
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.11+9-LTS",
"java.vendor": "Red Hat, Inc.",
"java.vendor.url": "https://www.redhat.com/",
"java.version": "11.0.11",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.11+9-LTS",
"os.name": "Linux",
"os.version": "4.18.0-305.3.1.el8.x86_64",
"user.language": "en",
"user.timezone": "Asia/Singapore"
},
"metabase-info": {
"databases": [
"postgres",
"h2"
],
"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": "2021-05-27",
"tag": "v0.39.3",
"branch": "release-x.39.x",
"hash": "598a112"
},
"settings": {
"report-timezone": "Asia/Singapore"
}
}
}