summaryrefslogtreecommitdiffhomepage
path: root/DumpSource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'DumpSource.cpp')
-rw-r--r--DumpSource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/DumpSource.cpp b/DumpSource.cpp
index b80be2f..b9c86be 100644
--- a/DumpSource.cpp
+++ b/DumpSource.cpp
@@ -3,7 +3,6 @@
#include <ctime>
#include <sstream>
#include <string>
-#include <utility>
#include <vector>
#include <nlohmann/json.hpp>
@@ -60,5 +59,6 @@ from_json(const json& j, Killmail& km)
j.at("victim").at("corporation_id").get_to(km.owner.corporation);
j.at("victim").at("alliance_id").get_to(km.owner.alliance);
j.at("victim").at("faction_id").get_to(km.owner.faction);
- j.at("killmail_time").get_to(km.time);
+ auto calendar = j.at("killmail_time").get<tm>();
+ km.time = std::mktime(&calendar);
}