Skip to content

[BUG] Documentation update Get-PnPUnifiedAuditLog Start and end times should be UTC Dates. #3753

@SPDEVGUY

Description

@SPDEVGUY

Reporting an Issue or Missing Feature

Bug (Documentation incorrect)

https://pnp.github.io/powershell/cmdlets/Get-PnPUnifiedAuditLog.html

Example 1
Get-PnPUnifiedAuditLog -ContentType SharePoint -StartTime (Get-Date).AddDays(-2) -EndTime (Get-Date).AddDays(-1)

Expected behavior

Documentation is missing the fact that start and end times are UTC.

Actual behavior

Example 1 should be like this and Start and End times documentation should make note that dates provided are UTC times.

$utcNow = Get-Date -asUtc
Get-PnPUnifiedAuditLog -ContentType SharePoint -StartTime ($utcNow).AddDays(-2) -EndTime ($utcNow).AddDays(-1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions