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 (string.IsNullOrEmpty(text)) return null;
// 使用默认解析。
if (TryParse(text, out DateTime system)) return new Class<DateTime>(system);
// 尝试解析 Lucid 格式。 // 尝试解析 Lucid 格式。
var lucid = ParseLucid(text); var lucid = ParseLucid(text);
if (lucid != null) return lucid; if (lucid != null) return lucid;
// 使用默认解析。
if (TryParse(text, out DateTime system)) return new Class<DateTime>(system);
return null; return null;
} }

Loading…
Cancel
Save