From 7863e4caa1d07aef348a437fe0a662db68fd7ac3 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 21 May 2022 11:55:08 +0200 Subject: Added naive Timeline --- DumpSource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'DumpSource.cpp') diff --git a/DumpSource.cpp b/DumpSource.cpp index b80be2f..b9c86be 100644 --- a/DumpSource.cpp +++ b/DumpSource.cpp @@ -3,7 +3,6 @@ #include #include #include -#include #include #include @@ -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(); + km.time = std::mktime(&calendar); } -- cgit v1.1