File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
sql/moz-fx-data-shared-prod
app_store/firefox_app_store_territory_source_type_report
firefox_ios_derived/app_store_funnel_v1 Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 5
5
-- https://developer.apple.com/help/app-store-connect/view-sales-and-trends/download-and-view-reports
6
6
-- "Time zone: Reports are based on Pacific Time (PT). A day includes transactions that happened from 12:00 a.m. to 11:59 p.m. PT."
7
7
-- Date conversion in the query is required to unify the dates to UTC timezone which is what we use.
8
- * REPLACE (TIMESTAMP (DATETIME(` date` , " America/Los_Angeles" )) AS ` date` ),
9
- ` date` AS date_pst,
8
+ -- However, the `date` timestamp field appear to always show midnight meaning if we do timezone conversion
9
+ -- we will end up moving all results 1 day back if we attempt conversion to UTC.
10
+ -- This is why we are not doing timezone converstions here.
11
+ * ,
10
12
FROM
11
13
` moz-fx-data-shared-prod.app_store_syndicate.app_store_territory_source_type_report`
Original file line number Diff line number Diff line change
1
+ -- https://developer.apple.com/help/app-store-connect/view-sales-and-trends/download-and-view-reports
2
+ -- "Time zone: Reports are based on Pacific Time (PT). A day includes transactions that happened from 12:00 a.m. to 11:59 p.m. PT.
3
+ -- However, the `date` timestamp field appear to always show midnight meaning if we do timezone conversion
4
+ -- we will end up moving all results 1 day back if we attempt conversion to UTC.
5
+ -- This is why we are not doing timezone converstions here.
1
6
WITH historical_store_data AS (
2
7
WITH impression_data AS (
3
8
SELECT
You can’t perform that action at this time.
0 commit comments