This commit is contained in:
2020-02-06 19:48:11 +00:00
parent c9f41ee953
commit bb42d34d0c
5 changed files with 34 additions and 13 deletions

View File

@@ -57,7 +57,7 @@ export default {
date: null,
oldDate: null,
dlgdate: false,
defaultLocale: window.$gz.locale.getFirstBrowserLanguage().split("-", 1)[0]
defaultLocale: window.$gz.locale.getBrowserFirstLanguage().split("-", 1)[0]
}),
props: {
label: String,

View File

@@ -94,17 +94,13 @@ export default {
throw "DateTimeControl: $gz.locale is required and missing";
}
}
// this.defaultLocale = window.$gz.locale
// .getFirstBrowserLanguage()
// .split("-", 1);
},
data: () => ({
date: null,
oldDate: null,
dlgdate: false,
dlgtime: false,
defaultLocale: window.$gz.locale.getFirstBrowserLanguage().split("-", 1)[0],
defaultLocale: window.$gz.locale.getBrowserFirstLanguage().split("-", 1)[0],
ampmFormat: window.$gz.locale.format().hour12 ? "ampm" : "24hr"
}),
props: {