diff --git a/Modules/History/lootHistory.lua b/Modules/History/lootHistory.lua index 1eab77e0..579294ae 100644 --- a/Modules/History/lootHistory.lua +++ b/Modules/History/lootHistory.lua @@ -1647,6 +1647,7 @@ do tinsert(export, string.format("\"%s\":\"%s\"", "note", QuotesEscape(d.note))) tinsert(export, string.format("\"%s\":\"%s\"", "owner", tostring(d.owner or "Unknown"))) tinsert(export, string.format("\"%s\":\"%s\"", "itemName", ItemUtils:GetItemNameFromLink(d.lootWon))) + tinsert(export, string.format("\"%s\":%s", "serverTime", tostring(d.serverTime or 0))) processedEntries = processedEntries + 1; diff --git a/ml_core.lua b/ml_core.lua index 5f0dcd64..57d86189 100644 --- a/ml_core.lua +++ b/ml_core.lua @@ -1237,6 +1237,7 @@ function RCLootCouncilML:TrackAndLogLoot(winner, link, responseID, boss, reason, history_table["id"] = time(date("!*t")).."-"..historyCounter -- New in v2.7+. A unique id for the history entry. history_table["owner"] = owner or self.lootTable[session] and self.lootTable[session].owner or winner -- New in v2.9+. history_table["typeCode"] = self.lootTable[session] and self.lootTable[session].typeCode -- New in v2.15+. + history_table["serverTime"] = GetServerTime() historyCounter = historyCounter + 1