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
Method invocation failed because [System.TimeSpan] does not contain a method named 'op_Multiply'.
At C:\Users\...\Documents\WindowsPowerShell\Modules\PSBusinessTime\0.3.0\PSBusinessTime.psm1:409 char:9+$InBetweenHours=$NumberOfWorkingDays*$WorkingHours+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (op_Multiply:String) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
Thanks for taking the time to let me know and apologies for the delay in following up. I foolishly assumed New-TimeSpan was unchanged between Windows PowerShell and pwsh, but it looks like a multiply operator for it is new in pwsh. I just pushed 0.3.2 which should resolve the issue.
Environment
Current (as of 0.3.0)
Input
Output
Workaround
Patch
PSBusinessTime.psm1
Line
313
From:
To:
PSBusinessTime.psm1
Line
409
From:
To:
Input
Output
The text was updated successfully, but these errors were encountered: