summaryrefslogtreecommitdiffhomepage
path: root/DumpSource.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-05-21 11:55:08 +0200
committerAki <please@ignore.pl>2022-05-21 11:55:08 +0200
commit7863e4caa1d07aef348a437fe0a662db68fd7ac3 (patch)
treebf52dfa7a7c45be1d1a696f5bf7c0c3f90beba68 /DumpSource.cpp
parentde8d7a812c4da9f0375dc47626c0e836ba728207 (diff)
downloadderelict-7863e4caa1d07aef348a437fe0a662db68fd7ac3.zip
derelict-7863e4caa1d07aef348a437fe0a662db68fd7ac3.tar.gz
derelict-7863e4caa1d07aef348a437fe0a662db68fd7ac3.tar.bz2
Added naive Timeline
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);
}