#27 Fix for 1 day offset and removing old column
This commit is contained in:
parent
f4e4b9c02d
commit
2f68a3d7a9
|
@ -49,10 +49,11 @@ namespace DML.Application.Core
|
||||||
if (timestamp > 0)
|
if (timestamp > 0)
|
||||||
{
|
{
|
||||||
pseudoId = timestamp - 1420070400000 << 22;
|
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["LastMessageId"] = pseudoId;
|
||||||
|
jobDoc.Remove("KnownTimestamp");
|
||||||
|
|
||||||
Core.Database.Engine.Update("jobs", jobDoc);
|
Core.Database.Engine.Update("jobs", jobDoc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue