diff --git a/api/plans.go b/api/plans.go new file mode 100644 index 0000000000..dc2b038ad8 --- /dev/null +++ b/api/plans.go @@ -0,0 +1,9 @@ +package api + +type RepeatingPlanStruct struct { + Weekdays []int `json:"weekdays"` // 0-6 (Sunday-Saturday) + Time string `json:"time"` // HH:MM + Tz string `json:"tz"` // timezone in IANA format + Soc int `json:"soc"` + Active bool `json:"active"` +} diff --git a/assets/css/app.css b/assets/css/app.css index 40ecaa9fc4..1a83bf9de1 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -632,3 +632,7 @@ html.app .modal-dialog { .alert-danger code { color: var(--evcc-darkest-green); } + +input::-webkit-date-and-time-value { + text-align: left; +} diff --git a/assets/js/components/ChargingPlan.vue b/assets/js/components/ChargingPlan.vue index 94cc8c29a2..3fbaa6d53d 100644 --- a/assets/js/components/ChargingPlan.vue +++ b/assets/js/components/ChargingPlan.vue @@ -7,7 +7,12 @@ data-testid="charging-plan" >
-