Skip to content

Commit

Permalink
[fix]如果待转换时间未指定时区,则直接返回。在web开发中,url时间参数传递一般不带时区,代码读取得到的时间类型是Unspecifi…
Browse files Browse the repository at this point in the history
…ed,此时如果直接对雪花Id字段进行时间区间查找,不管是转Local还是转UTC都可能出错,因为url里面这个时间,大多数时候就是本地时间,所以这里不应该转换。
  • Loading branch information
nnhy committed Aug 3, 2024
1 parent 17c5807 commit c4b0a18
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Test/Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
<ItemGroup>
<PackageReference Include="IBM.Data.DB2.Core" Version="3.1.0.600" />
<PackageReference Include="MySql.Data" Version="9.0.0" />
<PackageReference Include="NewLife.Redis" Version="5.7.2024.709" />
<PackageReference Include="NewLife.Remoting" Version="3.0.2024.708" />
<PackageReference Include="NewLife.Stardust" Version="3.0.2024.708" />
<PackageReference Include="NewLife.Redis" Version="5.7.2024.801" />
<PackageReference Include="NewLife.Remoting" Version="3.0.2024.801" />
<PackageReference Include="NewLife.Stardust" Version="3.0.2024.802" />
<PackageReference Include="Oracle.ManagedDataAccess.Core" Version="23.5.0" />
<PackageReference Include="SapHana.DotNetCore.Data.Provider" Version="2.11.14" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.6" />
Expand Down
2 changes: 1 addition & 1 deletion XCode/XCode.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</PackageReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="NewLife.Core" Version="10.10.2024.801" />
<PackageReference Include="NewLife.Core" Version="10.10.2024.803" />
</ItemGroup>
<ItemGroup>
<Compile Remove="build\**" />
Expand Down
2 changes: 1 addition & 1 deletion XUnitTest.XCode/XUnitTest.XCode.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="NewLife.Core" Version="10.10.2024.801" />
<PackageReference Include="NewLife.Core" Version="10.10.2024.803" />
<PackageReference Include="NewLife.IP" Version="2.1.2024.407" />
<PackageReference Include="NewLife.UnitTest" Version="1.0.2024.102-beta0146" />
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="8.0.0" />
Expand Down

0 comments on commit c4b0a18

Please sign in to comment.