studio
studio copied to clipboard
Flow (dashboard): Date.toLocaleString/getHours timezone is of while running
When I create a dashboard project with the following text field:
A local variable mynow of type date is also defined.
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:
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.
dateTest.eez-project.zip Here's the example project
Found a workaround using Javascript: