Use local timezone for log and history dates
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
<paper-input
|
||||
label='Showing entries for'
|
||||
id='datePicker'
|
||||
value='[[selectedDate]]'
|
||||
value='[[selectedDateStr]]'
|
||||
on-focus='datepickerFocus'
|
||||
></paper-input>
|
||||
|
||||
@@ -77,6 +77,20 @@ Polymer({
|
||||
},
|
||||
},
|
||||
|
||||
selectedDateStr: {
|
||||
type: String,
|
||||
value: null,
|
||||
bindNuclear: function (hass) {
|
||||
return [
|
||||
hass.logbookGetters.currentDate,
|
||||
function (currentDate) {
|
||||
var dateObj = new Date(currentDate);
|
||||
return dateObj.toLocaleDateString();
|
||||
},
|
||||
];
|
||||
},
|
||||
},
|
||||
|
||||
isLoading: {
|
||||
type: Boolean,
|
||||
bindNuclear: function (hass) {
|
||||
|
||||
Reference in New Issue
Block a user