Subversion Repository Public Repository

ConnectionOdbcSdk

Diff Revisions 28 vs 29 for /trunk/ConnectionServer/UnityConnectionServerOdbcSdk.cs

Diff revisions: vs.
  @@ -828,12 +828,12 @@
828 828 return false;
829 829 }
830 830
831 - if (dateTemp.CompareTo(DateTime.Now.ToUniversalTime()) <= 0)
831 + if ((dateTemp.ToLocalTime() - DateTime.Now).TotalMinutes <= 5)
832 832 {
833 833 //date in DB is older than now - file deleted
834 834 return true;
835 835 }
836 -
836 +
837 837 //date in DB is newer than now - file scheduled to be deleted (?) which isn't really supported...
838 838 return false;
839 839 }