JAz.PIM icon indicating copy to clipboard operation
JAz.PIM copied to clipboard

DateTime Properties Are Not Localized

Open bmkaiser opened this issue 3 years ago • 1 comments

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

bmkaiser avatar Jul 27 '22 17:07 bmkaiser

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

JustinGrote avatar Jul 28 '22 20:07 JustinGrote