This commit is contained in:
2020-04-28 20:52:57 +00:00
parent cbecd46038
commit 2902996b8b

View File

@@ -198,8 +198,13 @@ namespace AyaNova.PlugIn.V8
//make an event log entry to preserve the original v7 history such as it is //make an event log entry to preserve the original v7 history such as it is
public async static Task EventLog(int RavenType, long RavenId, long RavenCreatorId, long RavenModifierId, string sCreated, string sModified) public async static Task EventLog(int RavenType, long RavenId, long RavenCreatorId, long RavenModifierId, string sCreated, string sModified)
{ {
DateTime Created = DateTime.Parse(sCreated).ToUniversalTime(); DateTime Created = DateTime.UtcNow;
DateTime Modified = DateTime.Parse(sModified).ToUniversalTime(); if(!string.IsNullOrWhiteSpace(sCreated))
Created=DateTime.Parse(sCreated).ToUniversalTime();
DateTime Modified = DateTime.UtcNow;
if(!string.IsNullOrWhiteSpace(sCreated))
Modified = DateTime.Parse(sModified).ToUniversalTime();
dynamic d = new JObject(); dynamic d = new JObject();
d.ayType = RavenType; d.ayType = RavenType;