Unified scripting is always running on server side. So in case of WinCC Unified for Industrial Edge, the system time of your IED is used if you use the DATE-object in JavaScript.
Please have a look to following link to deal with the DATE-object in JavaScript:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date?retiredLocale=de
BR
Andreas