Browse Source

ClockUtility:Parse 优先执行 ParseLucid

master
王厅 1 month ago
parent
commit
0b01e07136
  1. 6
      Apewer/ClockUtility.cs

6
Apewer/ClockUtility.cs

@ -348,13 +348,13 @@ namespace Apewer
{
if (string.IsNullOrEmpty(text)) return null;
// 使用默认解析。
if (TryParse(text, out DateTime system)) return new Class<DateTime>(system);
// 尝试解析 Lucid 格式。
var lucid = ParseLucid(text);
if (lucid != null) return lucid;
// 使用默认解析。
if (TryParse(text, out DateTime system)) return new Class<DateTime>(system);
return null;
}

Loading…
Cancel
Save