-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Hi,
What Timezone is used for SDTs when using the New-LMDeviceGroupSDT command? It appears to look at the timezone of the machine I'm on and use that. Is that correct?
E.g. I want an SDT that starts at 5AM Eastern. I'm running the script from a machine that in Mountain. Our Portal timezone is Pacific. I'm located in Central.
When I run the command with 05:00:00, the output shows startDateTimeOnLocal : 2026-02-25 04:00:00 PST. It's using the 5AM as Mountain time and showing it to me in Pacific. When I refresh the LM portal it shows 6AM for me which is really 7AM ET.
It seems I need to put in 3AM since that's what time it is in Mountain when it's 5AM in Eastern. Is that right?
If I then run the script from my own machine it's going to be off by an hour. Is there any way to specify the timezone in the command so if I run it from a different machine it doesn't get messed up?
On a side note, it might be nice to simply specif a Duration instead of having to specify a start and end time. Then if I need to change the time i only have to change it once. And it'd be easier to handle something that crosses past midnight.