Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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": [
Copy link

psinghkforce commented Apr 27, 2020

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