Skip to content

Commit

Permalink
Fixing date conversion issue (#105)
Browse files Browse the repository at this point in the history
* Added user guidance

* Casting into string ignores the machines locale and returns the data in en-us format

* Added report 'Node Metadata'
  • Loading branch information
raandree authored Apr 26, 2021
1 parent df6b776 commit 0f25496
Show file tree
Hide file tree
Showing 2 changed files with 771 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lab/DscTaggingData/New-DscDataEndpoint.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function Send-DscTaggingData {
Write-Host "DscDataEndpoint uses SQL Server '$sqlServerName'."

$Data.psobject.Properties.Remove('RunspaceId')
$Data.psobject.Properties.Add([System.Management.Automation.PSNoteProperty]::new('Timestamp', (Get-Date)))
$Data.psobject.Properties.Add([System.Management.Automation.PSNoteProperty]::new('Timestamp', [string](Get-Date)))
$Data.psobject.Properties.Add([System.Management.Automation.PSNoteProperty]::new('AgentId', $agentId))

$cmd = "SELECT AgentId FROM dbo.TaggingData WHERE AgentID = '$($Data.AgentId)'"
Expand Down
Loading

0 comments on commit 0f25496

Please sign in to comment.