System.Data.SQLite

Login
This project makes use of Eagle, provided by Mistachkin Systems.
Eagle: Secure Software Automation

Artifact 1be9f553f8d2acec0ee1084f7242829b7753bcd1:

Attachment "a7d04fb111.patch" to ticket [a7d04fb111] added by anonymous 2015-02-17 23:13:29.
edit: $/EOC4/Users/nick.whaley/sqlite-netFx-source-1.0.94.1/System.Data.SQLite/SQLite3.cs;C15706
File: SQLite3.cs
===================================================================
--- Server: $/EOC4/Users/nick.whaley/sqlite-netFx-source-1.0.94.1/System.Data.SQLite/SQLite3.cs;C15706
+++ Shelved Change: $/EOC4/Users/nick.whaley/sqlite-netFx-source-1.0.94.1/System.Data.SQLite/SQLite3.cs;sqlite
@@ -1280,7 +1280,13 @@
         {
             case SQLiteDateFormats.Ticks:
                 {
-                    long value = dt.Ticks;
+					long value;
+					if (dt.Kind == DateTimeKind.Unspecified || _datetimeKind == DateTimeKind.Unspecified)
+						value = dt.Ticks;
+					else if (_datetimeKind == DateTimeKind.Utc)
+						value = dt.ToUniversalTime().Ticks;
+					else // if (_datetimeKind == DateTimeKind.Local)
+						value = dt.ToLocalTime().Ticks;
 
 #if !PLATFORM_COMPACTFRAMEWORK
                     if ((flags & SQLiteConnectionFlags.LogBind) == SQLiteConnectionFlags.LogBind)
===================================================================