Skip to content

Commit 9a1e1a0

Browse files
committed
we have to enable Microsoft.Data.Sqlite.Pre10TimeZoneHandling as this was a breaking change in Microsoft.Sqlite version 10
1 parent beadcb5 commit 9a1e1a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

MetaDataDB/DB2Instance.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public DB2Instance(string fileName, bool readOnly)
3939
try
4040
{
4141
Log.Instance.Info($"Open Database '{fileName}:readOnly={readOnly}'");
42+
AppContext.SetSwitch("Microsoft.Data.Sqlite.Pre10TimeZoneHandling", isEnabled: true);
4243

4344
_fileName = fileName;
4445
ReadOnly = readOnly;

0 commit comments

Comments
 (0)