Hassio remove TZ hack (#915)

This commit is contained in:
c727 2018-02-23 18:18:27 +01:00 committed by GitHub
parent 0ffb31999e
commit b47c5beacf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ class HassioSnapshot extends window.hassMixins.EventsMixin(Polymer.Element) {
}
formatDatetime(datetime) {
return new Date(datetime + '+00:00').toLocaleDateString(navigator.language, {
return new Date(datetime).toLocaleDateString(navigator.language, {
weekday: 'long',
year: 'numeric',
month: 'short',

View File

@ -87,7 +87,7 @@
<hassio-card-content
title='[[computeName(snapshot)]]'
description='[[computeType(snapshot.type)]]'
datetime='[[snapshot.date]]+00:00'
datetime='[[snapshot.date]]'
icon='[[computeIcon(snapshot.type)]]'
icon-class='snapshot'
></hassio-card-content>