NewLife/X

UTC
大石头 编写于 2020-01-07 18:17:54
共计: 修改1个文件,增加1行、删除1行。
修改 +1 -1
修改 +1 -1
diff --git a/NewLife.Core/Serialization/Json/JsonReader.cs b/NewLife.Core/Serialization/Json/JsonReader.cs
index 914981f..b5790cd 100644
--- a/NewLife.Core/Serialization/Json/JsonReader.cs
+++ b/NewLife.Core/Serialization/Json/JsonReader.cs
@@ -352,7 +352,7 @@ namespace NewLife.Serialization
                 if (str.Length > 21 && str[19] == '.')
                     ms = CreateInteger(str, 20, 3);
 
-                if (str[str.Length - 1] == 'Z') utc = true;
+                if (str[str.Length - 1] == 'Z' || str.EndsWithIgnoreCase("UTC")) utc = true;
             }
 
             if (!UseUTCDateTime && !utc)