Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-PASAccount non-unix timestamp #546

Open
redboyhun opened this issue Aug 1, 2024 · 2 comments
Open

Get-PASAccount non-unix timestamp #546

redboyhun opened this issue Aug 1, 2024 · 2 comments

Comments

@redboyhun
Copy link

It would be nice if the Get-PASAccount function (and any related functions having dates) would print date times in "human readable format" like "yyyy.MM.dd HH:mm:ss"

Now I get like:
AccountID : 123_123
Safe : SomeSafe
address : some.address
userName : someuser
name : someobjectname
platformId : SomePlatform
secretType : password
platformAccountProperties : @{LogonDomain=acme}
secretManagement : @{automaticManagementEnabled=True; status=success; lastModifiedTime=1722505643; lastReconciledTime=1722505537; lastVerifiedTime=1722536550}
createdTime : 30/07/2024 14:53:18
categoryModificationTime : 01/08/2024 11:24:17

@pspete
Copy link
Owner

pspete commented Aug 1, 2024

No change since the last discussion on the topic: #466
Happy to accept a pull request which gets formats to apply to nested datetime properties...

@redboyhun
Copy link
Author

redboyhun commented Aug 13, 2024

maybe the easiest would be if they are defined like createdTime in the "root"
`...

      <Label>lastVerified</Label>

      <ScriptBlock>(get-date 1/1/1970).addseconds($_.secretManagement.lastVerifiedTime)</ScriptBlock>

  </ListItem>

  <ListItem>

      <Label>lastModified</Label>

      <ScriptBlock>(get-date 1/1/1970).addseconds($_.secretManagement.lastModifiedTime)</ScriptBlock>

  </ListItem>

  <ListItem>

      <Label>lastReconciled</Label>

      <ScriptBlock>(get-date 1/1/1970).addseconds($_.secretManagement.lastReconciledTime)</ScriptBlock>

  </ListItem>

...`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants