diff --git a/NewLife.Core/Data/Snowflake.cs b/NewLife.Core/Data/Snowflake.cs index 11d272303..877a46e32 100644 --- a/NewLife.Core/Data/Snowflake.cs +++ b/NewLife.Core/Data/Snowflake.cs @@ -348,6 +348,9 @@ public virtual Boolean TryParse(Int64 id, out DateTime time, out Int32 workerId, /// public DateTime ConvertKind(DateTime time) { + // 如果待转换时间未指定时区,则直接返回 + if (time.Kind == DateTimeKind.Unspecified) return time; + return StartTimestamp.Kind switch { DateTimeKind.Utc => time.ToUniversalTime(),