PDQ Inventory report - dd/mm/yyyy dates not showing
Hello,
I wrote a PowerShell script to extract Event Viewer logs pertaining to a specific application error.
The script works, it gets all the columns from Event Viewer and stores them in a variable.
However when I create a PDQ Inventory report, the dd/mm/yyyy dates are missing, but the mm/dd/yyyy dates are.
These are the dates from the Date and Time column in Event Viewer.
The dates are there in the PS variable that extracts the logs.
Does PDQ Inventory only show dates based on a specific format?
Thank you, please let me know if I can get any additional details.
Comments
Do you use get-winevent? I haven't run into the issue you describe but I also don't deal with multiple locales with different time formats. Have you tried to store TimeCreated as [string] instead of the default [datetime]?
A better option might be to format TimeCreated as your PDQ installation prefers it and store it as a [datetime]: