Last active
April 27, 2020 18:16
Star
You must be signed in to star a gist
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