翰高数据库 timestamp with time zone 返回

SqlSugar 沟通中
2 113

错误:Cannot write DateTime with Kind=Local to HGDB type 'timestamp with time zone', only UTC is supported. Note that it's not possible to mix DateTimes with different Kinds in an array, range, or multirange. (Parameter 'value')
代码: await db.Deleteable<RefreshToken>().Where(t => t.CreateTime < DateTime.Now.AddDays(-1)).ExecuteCommandAsync();
转换的Sql语句:【DELETE FROM "RefreshToken" WHERE ( "CreateTime" < ('2026-02-02 19:41:04' +  ('-1'||'Day')::INTERVAL) ) 】


热忱回答2