Skip to content

Commit

Permalink
Improve target time handling (evcc-io#5164)
Browse files Browse the repository at this point in the history
  • Loading branch information
naltatis authored Nov 17, 2022
1 parent f8b51da commit 044a184
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions assets/js/components/TargetCharge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,16 +223,13 @@ export default {
const dayName =
labels[i] || date.toLocaleDateString("default", { weekday: "long" });
options.push({
value: date.toISOString().split("T")[0],
value: this.fmtDayString(date),
name: `${dayNumber} (${dayName})`,
});
date.setDate(date.getDate() + 1);
}
return options;
},
minTime: function () {
return new Date().toISOString().split("T")[1].slice(0, -8);
},
setTargetTime: function () {
try {
const hours = this.selectedTargetTime.getHours();
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<meta name="theme-color" content="#020318" />

<title>evcc</title>
<script type="module" crossorigin src="./assets/index.1ef7d4e7.js"></script>
<link rel="stylesheet" href="./assets/index.f6aa52fd.css">
<script type="module" crossorigin src="./assets/index.36048902.js"></script>
<link rel="stylesheet" href="./assets/index.0150814f.css">
</head>

<body>
Expand Down

0 comments on commit 044a184

Please sign in to comment.