Skip to content

Commit

Permalink
Use local timestamps for run history
Browse files Browse the repository at this point in the history
  • Loading branch information
borzel committed Nov 10, 2018
1 parent 2d2e4e0 commit 64999c5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -469,17 +469,17 @@ private void RefreshHistoryGrid()
for (int i = 0; i < 10 && i < messages.Count; i++)
{
var msg = messages[i];
var alert = new PolicyAlert(msg.priority, msg.name, msg.timestamp, msg.body, vmss.Name());
var alert = new PolicyAlert(msg.priority, msg.name, msg.TimestampLocal(), msg.body, vmss.Name());
dataGridViewRunHistory.Rows.Add(new HistoryRow(alert));
}
}
else
{
foreach (var msg in messages)
{
if (msg.timestamp >= offset)
if (msg.TimestampLocal() >= offset)
{
var alert = new PolicyAlert(msg.priority, msg.name, msg.timestamp, msg.body, vmss.Name());
var alert = new PolicyAlert(msg.priority, msg.name, msg.TimestampLocal(), msg.body, vmss.Name());
dataGridViewRunHistory.Rows.Add(new HistoryRow(alert));
}
else
Expand Down

0 comments on commit 64999c5

Please sign in to comment.