Can't get local date/time

I'm just trying to get the current local date/time in a Workflow code block, and no matter what I try I'm getting UTC time. I've tried the standard Date() and also Moment() and .tz("Australia/Melbourne").

In an actual Retool app I added a Time component, and the default "new Date()" gives the correct time.

What am I doing wrong??

Maybe these return the time on retool's servers?

OK I got it working finally.

The correct code I needed is

It's confusing having the time different between Apps and Workflows!