Skip to content

Commit

Permalink
fix remove sep
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidFW1960 committed Feb 1, 2022
1 parent 2d6b681 commit 0872a12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bom-weather-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,9 @@ get sunSet() {
}
else {
nextSunSet = new Date(this._hass.states[this.config.entity_sun].attributes.next_setting).toLocaleTimeString(this.config.locale, {hour: '2-digit', minute: '2-digit', hour12: false});
nextSunSet = nextSunSet.replace(":", '');
nextSunSet = (nextSunSet.replace(":", ''));
nextSunRise = new Date(this._hass.states[this.config.entity_sun].attributes.next_rising).toLocaleTimeString(this.config.locale, {hour: '2-digit', minute: '2-digit', hour12: false});
nextSunrise = nextSunRise.replace(":", '');
nextSunRise = (nextSunRise.replace(":", ''));
}
var nextDate = new Date();
nextDate.setDate(nextDate.getDate() + 1);
Expand Down

0 comments on commit 0872a12

Please sign in to comment.