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)