So this is working on one gateway at not another... interesting.
I copied the XML for the window to another gateway designer on my local machine and it works...
Only difference is Win 10 and Win 11
Running system.date.now()
on the first gateway in the script console returns the correct date.
Re-opening the window has fixed the issue.