JAz.PIM
JAz.PIM copied to clipboard
DateTime Properties Are Not Localized
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 most things in Azure are done as UTC but I can look into localizing it, thanks for the submission!