Michael Klement
Michael Klement
@Szeraax, note that there's already another issue with a specific proposal: #13598; if implemented as proposed, you'd use `ConvertFrom-Json -DateKind Offset`, which would create `[datetimeoffset]` instances that preserve the original...
Glad to hear it, @Szeraax; since thumbs-ups matter as a gauge of interest the community has in seeing a proposal implemented, I invite you to up-vote #13598
@wilsoncg, there's no bug, just a _display_ problem, which is what prompted creation of this issue to begin with: The first command's output is a `[datetime]` instance with a `Utc`...
@sba923, I agree with @SteveL-MSFT that #13598 is the only non-breaking way forward. To recap: * The _display_ problem you mention - the same as [previously reported by @wilsoncg ](https://github.com/PowerShell/PowerShell/issues/13592#issuecomment-884246533)...
@sba923, there is a workaround, but it is cumbersome: If you wrap all `[datetime]` instances inside the object graph returned from `ConvertFrom-Json` in `[psobject]`, `Out-GridView` will honor the ETS `.ToString()`...
@sba923, just to be clear: The proposed `-DateKind Offset` would preserve the offsets, due to using [`[datetimeoffset]`](https://docs.microsoft.com/en-US/dotnet/api/System.DateTimeOffset); `-DateKind None` would return the timestamp strings as-is.
@iRon7, to recap the key benefit of the `-DateKind` proposal, as also summarized in [@jborean93's comment](https://github.com/PowerShell/PowerShell/issues/13598#issuecomment-1301068480): it is the ability to _avoid loss of information_, by: * either: suppressing conversion...
Copying over a simple Pester test for localized error messages from the now closed duplicate #10679: ```powershell [cultureinfo]::CurrentUICulture = 'de-DE'; Get-Item nosuch 2>&1 | Should -match 'nicht gefunden' ```
If I understand correctly, what sets `$?` to false is _any_ error record being written to the caller's error stream - which can be a non-terminating error (`Get-Item NoSuch`) or...
@jhoneill Quick terminology note: There are _two types_ of terminating errors: * A _statement_-terminating error (pipeline-terminating) occurs in an expression such as `1 / 0`, an exception thrown by a...