Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Last active April 27, 2020 18:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save justinyoo/cac53708da40e1c8535b9d4237fee605 to your computer and use it in GitHub Desktop.
Converting UTC to Local Time via Azure Functions and Logic Apps
"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"
]
}
}
@psinghkforce
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment