mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-12-14 23:15:47 +08:00
update to net8.0
This commit is contained in:
@@ -31,7 +31,7 @@ namespace FreeSql.QuestDb
|
||||
string now_to_timezone;
|
||||
public QuestDbUtils(IFreeSql orm) : base(orm)
|
||||
{
|
||||
var timeOffset = (int)TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now).TotalMinutes;
|
||||
var timeOffset = (int)DateTime.Now.Subtract(DateTime.UtcNow).TotalMinutes;
|
||||
if (timeOffset == 0) now_to_timezone = "systimestamp()";
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user