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:
cproudlock
2025-12-09 13:13:46 -05:00
parent 179d39eb99
commit 60519c4588

View File

@@ -1111,7 +1111,10 @@ function Send-CompleteDataToDashboard {
totalPhysicalMemory = $SystemInfo.TotalPhysicalMemory
domainRole = $SystemInfo.DomainRole
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