Skip to content

Commit

Permalink
#157 Get-IshBaselineItem parses incoming ModifiedOn and CreatedOn val…
Browse files Browse the repository at this point in the history
…ues using CurrentCulture instead resulting in Month Day swapping for some Regional Settings ... Added a basic test before the actual code change, again Regional Options issues on the build server
  • Loading branch information
ddemeyer committed Jan 26, 2024
1 parent 3fd1e55 commit 4f07a0a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Describe "Get-IshBaselineItem" -Tags "Read" {
$month = (Get-Date).Month
$bi = (Get-IshBaselineItem -IshObject $ishObject)
# Where ModifiedOn is Sunday, August 6, 2023 5:23:45 PM
$bi[0].ModifiedOn | Should -Be $bi[0].ModifiedOnAsSortableDateTime #DEBUG!!!
(Get-Date -Date $bi[0].ModifiedOn).Day | Should -Be $day
(Get-Date -Date $bi[0].ModifiedOn).Month | Should -Be $month
# Where ModifiedOnAsSortableDateTime is 2023-08-06T17:23:45 which is in the future at the time of writing
Expand Down

0 comments on commit 4f07a0a

Please sign in to comment.