Update SMBios.cs (#877)

add detect format "yyyy-mm-dd"
This commit is contained in:
RXG
2022-11-09 17:20:08 +01:00
committed by GitHub
parent c4ec54e1cf
commit 48cad1af44
@@ -648,6 +648,11 @@ public class BiosInformation : InformationBase
int.TryParse(parts[1], out int day) &&
int.TryParse(parts[2], out int year))
{
if (day > 31)
{
(year, day) = (day, year);
}
if (month > 12)
{
(month, day) = (day, month);