Skip to content

Commit

Permalink
Added time_logon ("Online:")
Browse files Browse the repository at this point in the history
  • Loading branch information
Iunusov committed Nov 3, 2020
1 parent e8489c0 commit 5022d30
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion js/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ var Utils = function () {
this.objectToHTML = function (src) {
var client = $.extend({}, src);
client["altitude"] = that.commaSeparateNumber(client["altitude"]);
client["time_logon"] = client["time_online"];
if (client.clienttype === "PILOT") {
client["planned_deptime"] = that.formatDepTime(client["planned_deptime"]);
client["planned_actdeptime"] = that.formatDepTime(client["planned_actdeptime"]);
Expand Down
6 changes: 6 additions & 0 deletions tpl/details.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ <h6><%- client.callsign %> <% if (client.realname) { %>(<%- client.realname %>)<
<td class="text-nowrap font-weight-bold"><%- client.network %></td>
</tr>
<% } %>
<% if (client.time_logon) { %>
<tr>
<td>Online:</td>
<td class="text-nowrap font-weight-bold"><%- client.time_logon %></td>
</tr>
<% } %>
<% if (client.server) { %>
<tr>
<td>Server:</td>
Expand Down
1 change: 1 addition & 0 deletions vatsim_parser/parse.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ function trytoparse($url)
}
$clients_final[$k]["timestamp"] = $timestamp;
$clients_final[$k]["network"] = STATUS_URL_TYPE;
$clients_final[$k]["time_logon"] = getLogonTime($clients_final[$k]["time_logon"]);
}
addToDB(STATUS_URL_TYPE, $clients_final, $timestamp, getUsersOnline($data));
return true;
Expand Down

0 comments on commit 5022d30

Please sign in to comment.