VMware Cloud Community
CarlyWarly
Enthusiast
Enthusiast

Working with dates and timezones

Trying to get the timezone or time from the browser connecting to Orchestrator, with no luck.  When I run the following:

var dt = new Date()
System.log(dt.toLocaleString())

from the datacenter, the log shows:

2023-08-10 05:39:46.672 -05:00 INFO (com.dev/test2) August 10, 2023 at 10:39:46 GMT

Orchestrator knows the date and time of where I am running it 🙂 When I run it from my desktop I get:  

2023-08-10 11:56:11.161 +01:00 INFO (com.dev/test2) August 10, 2023 at 10:56:11 GMT

Does anyone know how to get this date & time?

Many thanks,

Carl

0 Kudos
1 Reply
CarlyWarly
Enthusiast
Enthusiast

Thought I had it, but no still looking 😞

0 Kudos