mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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) {
|
||||
return new Date(datetime + '+00:00').toLocaleDateString(navigator.language, {
|
||||
return new Date(datetime).toLocaleDateString(navigator.language, {
|
||||
weekday: 'long',
|
||||
year: 'numeric',
|
||||
month: 'short',
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user