The interactive script runs on the DM server, so if I get 'DateTime.Now' it gives me the time of the server. However, I want to know the time on the client's machine triggering the Interactive automation script. What would be the best way to retrieve this information?
I'm not sure if there is a way to know this and I would argue if this is needed. All processing and storing of datetimes on the backend can and most likely should be UTC.
If a DateTime needs to be presented to the user, it's the responsibility of the frontend (client) to make that conversion using the local timezone.
Do you mind sharing the reason why you need the timezone of the client?
The time when something happened can be UTC, that doesn’t change depending on a timezone. To provide feedback, you can send the start/end to the client as UTC. The client can then take care of converting that to the local time.
We would need to know in what time zone the user is, so we can trigger the actions at the right moment. If we can’t know it from the IAS, then we will need to give the user the ability to set his TZ on application level.
Hi Sebastiaan,
It is to know when the user is doing an action we can capture what time he did it (time and TZ). In addition, when we want to provide feedback on when events start/end we can show it in the timezone the user is in. To know the timezone of the user we need to get his current time or timezone might be sufficient actually.