Add time zone option to inbuilt date/time functions

The Domo functions such as NOW(), CURRENT_TIME(), CURRENT_TIMESTAMP(), CURTIME() all return times in UTC. It would be great if these could all be modified to take additional optional parameter of time zone so that the return values are shifted to the local time appropriate to the given time zone (including daylight savings if/when applicable). For example:-
NOW( 'America/New_York') would return UTC -5/-4 hours depending on whether daylight savings are in effect or not.
Comments
-
You can achieve this via Beast Mode. So, they probably won't spend time adding it.
CONVERT_TZ(NOW(), 'UTC', 'America/New_York')
Was this comment helpful? Click Agree or Like below.
Did this comment solve your problem? Accept it as the solution!1 -
Hi @Brycec,
I actually found that out too. However, when I asked Domo about this they said CONVERT_TZ isn't "supported" for use in Beast Modes or ETL (it's only for use in connector SQL or SQL data flows). So, although it works, it could stop working at any time and Domo wouldn't then be bound to provide any support (fix it).
Thanks!
1
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 656 Datasets
- 115 SQL DataFlows
- 2.2K Magic ETL
- 813 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 81 App Studio
- 45 Variables
- 771 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 77 Workflows
- 23 Code Engine
- 36 AI and Machine Learning
- 19 AI Chat
- AI Playground
- AI Projects and Models
- 17 Jupyter Workspaces
- 410 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 10 Software Integrations
- 142 Manage
- 138 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive