测试ClickHouse 批量更新DateTime问题

This commit is contained in:
Daily
2024-05-30 11:39:48 +08:00
parent 9aef33e3df
commit 989cf290f6
2 changed files with 14 additions and 12 deletions

View File

@ -173,8 +173,6 @@ namespace FreeSql.ClickHouse.Curd
if (col.Attribute.MapType == typeof(DateTime) || col.Attribute.MapType == typeof(DateTime?) )
{
//获取当前实时区
var timeZone = TimeZoneInfo.Local;
colsql = $"toDateTime({colsql},'Asia/Shanghai')";
}