studio icon indicating copy to clipboard operation
studio copied to clipboard

Flow (dashboard): Date.toLocaleString/getHours timezone is of while running

Open fietser28 opened this issue 9 months ago • 2 comments

When I create a dashboard project with the following text field:

A local variable mynow of type date is also defined. image

When in edit mode first 4 rows are already interpreted and they display what I would expect: toString in generic UTC format and toLocaleString,getHours,getMinutes in local format AND local timezone.

When in Run mode the values are suddenly different: image

The timezone of toLocaleString and getHours (and probably getMinutes) is off from what I would expect.

These screenshots were taken at 17:20 local time (currently 2 hours ahead of UTC) on MacOS.

fietser28 avatar Sep 15 '23 15:09 fietser28