Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Staralfur Posted June 6, 2019 Posted June 6, 2019 Hi guys. I can't seem to edit the calendar's date- and time format on the front-end, when users go to create an event. I've tried changing every setting I can find in the admin, and the locale, but no luck so far. Here you see what I mean: I am trying to change the date format from 9/27/2019 to 27/9/2019. Also, the time format from 4:00 PM to "16:00". Where can I do this? Thanks for any help, I hugely appreciate it.
bfarber Posted June 6, 2019 Posted June 6, 2019 What locale do you have set for your language pack? Typically, format of dates is controlled by the locale.
Staralfur Posted June 6, 2019 Author Posted June 6, 2019 I have it set to the Netherlands, it was part of a language pack from that country. However, the pack was made by a user from a while ago and it wasn't very complete. So I've translated all the remaining language strings to Dutch myself and have set the locale to the Netherlands in the language settings, but it still shows MM-DD even though the country uses DD-MM. Is there a way to override this or fix it somehow with a little digging? It seems it's not set up correctly somehow.
bfarber Posted June 7, 2019 Posted June 7, 2019 For browsers that support date HTML inputs, the browser controls the UI and format of the field. You can read this page for more details: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date Quote One thing to note is that the displayed date format differs from the actual value — the displayed date format will be chosen based on the set locale of the user's browser, whereas the date value is always formatted yyyy-mm-dd.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.