mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix timezone problem for "Today" in the Date Picker. (#14043)
This commit is contained in:
parent
c478a15846
commit
d8be662bd6
@ -57,7 +57,8 @@ export class HaDialogDatePicker extends LitElement {
|
||||
}
|
||||
|
||||
private _setToday() {
|
||||
this._value = new Date().toISOString().split("T")[0];
|
||||
// en-CA locale used for date format YYYY-MM-DD
|
||||
this._value = new Date().toLocaleDateString("en-CA");
|
||||
}
|
||||
|
||||
private _setValue() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user