I'm wondering, is there a way from a custom Dijit widget to get the configured date/time format for the current user's language? Or is the only way to get this kind of thing from the locale set in the browser? I have an instance where a custom widget is displaying a different time format than a date picker, because the custom time format in the Modeler for the language is set to US time (ie 11:00 pm), but I am in Europe, so my browser locale is set to display time as 23:00, which is how it displays in the widget. Is there a way in the widget to see what custom time format is set for the current language, and then to use that to display in the same way within the widget?
↧