Skip to content

Commit

Permalink
Changed exact_time_difference to exact_durations
Browse files Browse the repository at this point in the history
  • Loading branch information
gadgetchnnel committed Oct 30, 2019
1 parent d978ad3 commit c8f5d78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lovelace-home-feed-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -954,12 +954,12 @@ class HomeFeedCard extends HomeFeedCardHelpers.LitElement {
}
else
{
let exact_time_difference = this._config.exact_time_difference === true;
let exact_durations = this._config.exact_durations === true;

if(isNaN(n.timeDifference.value)){
timeItem = HomeFeedCardHelpers.html`<div style="display:block; ${compact_mode ? "float:right" : "clear:both;"}">${n.timestamp}</div>`;
}
else if(n.timeDifference.abs < 60 && n.format == "relative" && !exact_time_difference) {
else if(n.timeDifference.abs < 60 && n.format == "relative" && !exact_durations) {
// Time difference less than 1 minute, so use a regular div tag with fixed text.
// This avoids the time display refreshing too often shortly before or after an item's timestamp

Expand Down

0 comments on commit c8f5d78

Please sign in to comment.