mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Ensure calender follows time format locale (#9966)
This commit is contained in:
parent
605172a0bc
commit
0187c4faff
@ -23,6 +23,7 @@ import {
|
||||
} from "lit";
|
||||
import { property, state } from "lit/decorators";
|
||||
import memoize from "memoize-one";
|
||||
import { useAmPm } from "../../common/datetime/use_am_pm";
|
||||
import { fireEvent } from "../../common/dom/fire_event";
|
||||
import "../../components/ha-button-toggle-group";
|
||||
import "../../components/ha-icon-button";
|
||||
@ -214,6 +215,11 @@ export class HAFullCalendar extends LitElement {
|
||||
...defaultFullCalendarConfig,
|
||||
locale: this.hass.language,
|
||||
initialView: this.initialView,
|
||||
eventTimeFormat: {
|
||||
hour: useAmPm(this.hass.locale) ? "numeric" : "2-digit",
|
||||
minute: useAmPm(this.hass.locale) ? "numeric" : "2-digit",
|
||||
hour12: useAmPm(this.hass.locale),
|
||||
},
|
||||
};
|
||||
|
||||
config.dateClick = (info) => this._handleDateClick(info);
|
||||
|
Loading…
x
Reference in New Issue
Block a user