Fix lastBootUpTime datetime format for MySQL
PowerShell was sending datetime in US locale format (12/7/2025 10:05:28 PM) but MySQL requires ISO format (YYYY-MM-DD HH:MM:SS). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1111,7 +1111,10 @@ function Send-CompleteDataToDashboard {
|
|||||||
totalPhysicalMemory = $SystemInfo.TotalPhysicalMemory
|
totalPhysicalMemory = $SystemInfo.TotalPhysicalMemory
|
||||||
domainRole = $SystemInfo.DomainRole
|
domainRole = $SystemInfo.DomainRole
|
||||||
currentTimeZone = $SystemInfo.CurrentTimeZone
|
currentTimeZone = $SystemInfo.CurrentTimeZone
|
||||||
lastBootUpTime = $SystemInfo.LastBootUpTime
|
# Format lastBootUpTime as MySQL datetime (YYYY-MM-DD HH:MM:SS)
|
||||||
|
lastBootUpTime = if ($SystemInfo.LastBootUpTime) {
|
||||||
|
$SystemInfo.LastBootUpTime.ToString("yyyy-MM-dd HH:mm:ss")
|
||||||
|
} else { $null }
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add warranty data if available
|
# Add warranty data if available
|
||||||
|
|||||||
Reference in New Issue
Block a user