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
Before this change the String from scoop config lastupdate would get converted to DateTime using Get-Date. After that change it just keeps the string as-is, and you can't call .ToLocalTime on a String.
Seems to be because on PS Core, scoop config lastupdate does return a DateTime, but on PS 5 it returns a String ?
I should add: this happens if you use pwsh to run scoop update and then use powershell to run it. Running under pwsh saves the lastupdate value in ~/.scoop to the NewtonSoft.Json format used by pwsh's ConvertTo-Json, which powershell's ConvertFrom-Json can't parse.
(I had to switch to powershell because some scoop packages can't be installed with pwsh, because of PowerShell/PowerShell#6561 )
f3f559c#diff-f0957a994e6c95d903caeb55bf700101R494
Before this change the
String
fromscoop config lastupdate
would get converted toDateTime
usingGet-Date
. After that change it just keeps the string as-is, and you can't call.ToLocalTime
on aString
.Seems to be because on PS Core,
scoop config lastupdate
does return aDateTime
, but on PS 5 it returns aString
?Core:
5.0:
gcm scoop
confirms it's the sameC:\Users\Arnavion\scoop\shims\scoop.ps1
in both cases.The text was updated successfully, but these errors were encountered: