#27 Fix for 1 day offset and removing old column

This commit is contained in:
Serraniel 2019-02-16 20:01:44 +01:00
parent f4e4b9c02d
commit 2f68a3d7a9
Signed by untrusted user who does not match committer: Serraniel
GPG key ID: 3690B4E7364525D3

View file

@ -49,10 +49,11 @@ namespace DML.Application.Core
if (timestamp > 0)
{
pseudoId = timestamp - 1420070400000 << 22;
pseudoId -= (1000 * 60 * 60 * 24) << 22; // substract one random day of pseudo id just in case the timestamp has errors
pseudoId = pseudoId - (1000UL * 60 * 60 * 24 << 22); // substract one random day of pseudo id just in case the timestamp has errors
}
jobDoc["LastMessageId"] = pseudoId;
jobDoc.Remove("KnownTimestamp");
Core.Database.Engine.Update("jobs", jobDoc);
}