mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Hassio remove TZ hack (#915)
This commit is contained in:
parent
0ffb31999e
commit
b47c5beacf
@ -199,7 +199,7 @@ class HassioSnapshot extends window.hassMixins.EventsMixin(Polymer.Element) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
formatDatetime(datetime) {
|
formatDatetime(datetime) {
|
||||||
return new Date(datetime + '+00:00').toLocaleDateString(navigator.language, {
|
return new Date(datetime).toLocaleDateString(navigator.language, {
|
||||||
weekday: 'long',
|
weekday: 'long',
|
||||||
year: 'numeric',
|
year: 'numeric',
|
||||||
month: 'short',
|
month: 'short',
|
||||||
|
@ -87,7 +87,7 @@
|
|||||||
<hassio-card-content
|
<hassio-card-content
|
||||||
title='[[computeName(snapshot)]]'
|
title='[[computeName(snapshot)]]'
|
||||||
description='[[computeType(snapshot.type)]]'
|
description='[[computeType(snapshot.type)]]'
|
||||||
datetime='[[snapshot.date]]+00:00'
|
datetime='[[snapshot.date]]'
|
||||||
icon='[[computeIcon(snapshot.type)]]'
|
icon='[[computeIcon(snapshot.type)]]'
|
||||||
icon-class='snapshot'
|
icon-class='snapshot'
|
||||||
></hassio-card-content>
|
></hassio-card-content>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user