Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display locale in config-schema.json #2244

Open
justjam2013 opened this issue Nov 17, 2024 · 0 comments
Open

Display locale in config-schema.json #2244

justjam2013 opened this issue Nov 17, 2024 · 0 comments

Comments

@justjam2013
Copy link

justjam2013 commented Nov 17, 2024

Feature Description

Created a form with input field with format as date-time

            "startDateTime": {
              "title": "Start Date",
              "description": "Start date",
              "type": "string",
              "format": "date-time"
            },

Selected date from the popup widget:

Screenshot 2024-11-11 at 7 23 35 PM

The date was correctly saved in the Homebridge UI config:

            "startDateTime": "2024-11-11T19:23:00Z",

Given that Homebridge has an international following, I would like to be able to display the locale format expected for the date-time (this would be the user's/browser's locale). Something similar to this photoshopped image
385080536-88c27077-cd50-4b3a-975b-3349bd98495e

Using the calendar widget, the selected the date-time is displayed in the field in the user's locale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant