logicapps icon indicating copy to clipboard operation
logicapps copied to clipboard

DateTime Conversion Functions Don't Preserve UTC Offset - Conflicting Documentation

Open FIMTooler opened this issue 1 year ago • 10 comments

Describe the Bug

I'm unsure if this is a bug in the conversion functions or incorrect documentation. Possibly both as the functions do not honor specified formats with "K".

I've noticed that many of the datetime functions do not preserve UTC offset. Documentation HERE. The Return Value table indicates that there is no UTC offset which conflicts the default Format of "o" documented above that includes "K" for time zone information and clearly says "preserves time zone information".

image

Even when the format is specified instead of using the default "o", the UTC offset is not on the output.

Example: convertFromUtc(utcNow(), 'Pacific Standard Time','yyyy-MM-ddTHH:mm:ssK')

image

Results in the following output. image

The Return Value table for convertTimeZone function does NOT include the same language "without the timezone UTC offset". However as seen in Example 1, the UTC offset is not included in the result.

image

I've tested Example 1 exactly as shown and get same output as the documentation.

image

image

Plan Type

Consumption

Steps to Reproduce the Bug or Issue

  1. Create new LogicApp.
  2. Initialize Variable with dateTime conversion function.
  3. Run logic app and view results.

Workflow JSON


Screenshots or Videos

No response

Additional context

No response

FIMTooler avatar Feb 11 '25 15:02 FIMTooler

Thoughts?

FIMTooler avatar Mar 27 '25 21:03 FIMTooler

This issue is stale because it has been open for 45 days with no activity.

github-actions[bot] avatar May 11 '25 22:05 github-actions[bot]

Any updates?

FIMTooler avatar May 11 '25 23:05 FIMTooler

This issue is stale because it has been open for 45 days with no activity.

github-actions[bot] avatar Jun 26 '25 01:06 github-actions[bot]

Bump

FIMTooler avatar Jun 30 '25 18:06 FIMTooler

Preemptive bump

FIMTooler avatar Aug 11 '25 14:08 FIMTooler

This issue is stale because it has been open for 45 days with no activity.

github-actions[bot] avatar Sep 25 '25 15:09 github-actions[bot]

Bump

FIMTooler avatar Oct 04 '25 15:10 FIMTooler

This issue is stale because it has been open for 45 days with no activity.

github-actions[bot] avatar Nov 18 '25 16:11 github-actions[bot]

Bump

FIMTooler avatar Nov 18 '25 16:11 FIMTooler

This issue is stale because it has been open for 45 days with no activity.

github-actions[bot] avatar Jan 02 '26 18:01 github-actions[bot]

Bump

FIMTooler avatar Jan 02 '26 19:01 FIMTooler

This issue is stale because it has been open for 45 days with no activity.

github-actions[bot] avatar Feb 16 '26 20:02 github-actions[bot]

Bump

FIMTooler avatar Feb 17 '26 15:02 FIMTooler