Last active
April 27, 2020 18:16
-
-
Save justinyoo/cac53708da40e1c8535b9d4237fee605 to your computer and use it in GitHub Desktop.
Converting UTC to Local Time via Azure Functions and Logic Apps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Compose": { | |
"type": "Compose", | |
"inputs": { | |
"input": "@{triggerBody()?['input']}", | |
// WDL function to convert time zone. | |
"logicAppOutput": "@{convertTimeZone(triggerBody()?['input'], 'UTC', 'AUS Eastern Standard Time', 'o')}", | |
// Time zone conversion from Azure Function | |
"functionOutput": "@{body('HTTP')?['output']}" | |
}, | |
"runAfter": { | |
"HTTP": [ | |
"Succeeded" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can simple use
"name": "@{concat(formatDateTime(convertFromUtc(utcNow(),'Eastern Standard Time'), 'yyyy-MM-dd-HH-mm-ss-fff'),'-FileName.json')}",
It will create Eastern Standard Time file format