Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.

Commit

Permalink
unknown log and utc
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWillard committed Dec 9, 2020
1 parent 824e64d commit 40036c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/Record.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ void grad::replay::to_json(nl::json& j, const Record& r)
else if (icon == "Land_DataTerminal_01_F")
icon = "radiounit";
}
else {
client::invoker_lock thread_lock;
sqf::diag_log(sqf::text("[GRAD] (replay_intercept) WARNING: Couldn't find iconTyp for: " + r.icon));
}

std::array<float_t, 4> color;
if (r.colorMap.find(r.color) != r.colorMap.end()) {
color = r.colorMap.at(r.color);
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static inline std::map<int, std::array<float_t, 4>> defaultColorMap {
std::string timePointToString(std::chrono::system_clock::time_point timePoint) {
std::time_t missionStartInTimeT = std::chrono::system_clock::to_time_t(timePoint);
std::stringstream timeStream;
timeStream << std::put_time(std::localtime(&missionStartInTimeT), "%F %T");
timeStream << std::put_time(std::gmtime(&missionStartInTimeT), "%F %T");
return timeStream.str();
}

Expand Down

0 comments on commit 40036c9

Please sign in to comment.