Skip to content
This repository was archived by the owner on Oct 3, 2025. It is now read-only.

Commit ecb66d5

Browse files
Fix date parsing error for EC firmwares released before 10 AM
Fixes #61
1 parent bcd1b3d commit ecb66d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

YAMDCC.Service/FanControlService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ protected override void OnStart(string[] args)
123123
try
124124
{
125125
string temp = $"{ecDate.Substring(4, 4)}-{ecDate.Substring(0, 2)}-{ecDate.Substring(2, 2)}" +
126-
$"T{ecDate.Substring(8, 2)}:{ecDate.Substring(11, 2)}:{ecDate.Substring(14, 2)}";
126+
$"T{ecDate.Substring(8, 2).Replace(' ', '0')}:{ecDate.Substring(11, 2)}:{ecDate.Substring(14, 2)}";
127127
EcInfo.Date = DateTime.ParseExact(temp, "s", CultureInfo.InvariantCulture);
128128
Log.Debug($"EC firmware date: {EcInfo.Date:G}");
129129
}

0 commit comments

Comments
 (0)