You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Details of the scenario you tried and the problem that is occurring
The Get-ArchiveEntryLastWriteTime function in xArchive should return a [system.datetime] (and the output type report that), but instead it generalizes it to a string.
This causes all sorts of date translation issues on machines with non-US date formats. Including test failures and other very difficult to diagnose issues.
We should avoid converting date/times to/from string when we need to compare them.
I'll be fixing this in a PR shortly (once I can get all the other broken archive tests sorted).
Details of the scenario you tried and the problem that is occurring
The Get-ArchiveEntryLastWriteTime function in xArchive should return a [system.datetime] (and the output type report that), but instead it generalizes it to a string.
This causes all sorts of date translation issues on machines with non-US date formats. Including test failures and other very difficult to diagnose issues.
We should avoid converting date/times to/from string when we need to compare them.
I'll be fixing this in a PR shortly (once I can get all the other broken archive tests sorted).
Verbose logs showing the problem
https://github.com/PowerShell/xPSDesiredStateConfiguration/blob/dev/DSCResources/MSFT_xArchive/MSFT_xArchive.psm1#L992
Suggested solution to the issue
Correct 'Get-ArchiveEntryLastWriteTime' to return [datetime]
The DSC configuration that is used to reproduce the issue (as detailed as possible)
N/A
The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the DSC module that was used ('dev' if using current dev branch)
dev
I expect this is the same in PSDscResources - so I'll raise and fix over there too.
The text was updated successfully, but these errors were encountered: