JustinGrote / JAz.PIM

MIT License
30 stars 2 forks source link

DateTime Properties Are Not Localized #13

Open bmkaiser opened 2 years ago

bmkaiser commented 2 years ago

The confirmation for activated roles displays the StartDateTime and EndDateTime properties as UTC instead of local time. This makes it unclear what the actual start/end time is.

PS > Get-Date; Get-Date -AsUTC

Wednesday, July 27, 2022 1:23:00 PM
Wednesday, July 27, 2022 5:23:00 PM

PS > Enable-ADRole 'Global Reader (LJnv8vs6uUa3z6Em7nTEUZY-Uygeo0pJj_wBT3Lkhj8-1-e)' -Justification 'foo' -Hours 1

Action       Status      PrincipalDisplayName RoleName      Scope     StartDateTime        EndDateTime
------       ------      -------------------- --------      -----     -------------        -----------
selfActivate Provisioned bmkaiser             Global Reader Directory 7/27/2022 5:23:30 PM 7/27/2022 6:23:00 PM
JustinGrote commented 2 years ago

@bmkaiser most things in Azure are done as UTC but I can look into localizing it, thanks for the submission!