MySQL using different timezone to workplace setting
I've just discovered that cards will use the workplace setting for a timezone, [e.g. AEST] whereas MySQL Dataflows will use GMT.
I'm trying to sum total sales by month, to then apply a monthly commission formula.
This sort of structure:
|Month | Sales | Commission|
|2017-09|10,000|3,000|
|2017-10|12,000|4,000|
Where Month = DATE_FORMAT(`completedAt_$date`,'%Y-%m')
and Sales = SUM(`Amount`)
I need to use MySQL rather than beastmode calculations in a card, because ultimately I'll need to sum it down to a single number and use that figure in other calculations.
What I've discovered is that if I view the data used by my card and SQL on an individual transaction level, it's identical [ID, Amount] apart from the 'Month' field, which will vary on the boundary between months where, say, the transaction in AEST is in Nov, but in GMT is Oct. This creates substantial disparities in my data!!!
I'm unsure if this is by design or a Domo bug ~ any suggestions on how to automatically have mySQL use the workplace timezone rather than GMT?
Comments
-
If the original data is all UTC, setting the time zone from the administrator screen will convert Domo when importing data.
https: // [your-instance] .domo.com / admin / companysettings
Time zoneHowever, this function can not be used if the original data is AEST or GMT.
In this case, you need to set the Time zone setting to UTC.
Then, in DataFlow SQL, convert like convert_tz (`date`, 'GMT', 'AEST').===
元のデータが全てUTCであるならば、管理者画面からタイムゾーンを設定すると、Domoがデータ取り込み時に変換してくれます。
https://[your-instance].domo.com/admin/companysettings
Time zoneしかし、元のデータが AEST や GMT の場合、この機能は利用できません。
この場合は、Time zone 設定をUTCにしておく必要があります。
そして、DataFlow SQLで、convert_tz(`date`, 'GMT', 'AEST') の様に変換します。0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive