This commit is contained in:
@@ -747,47 +747,11 @@ export default function initialize() {
|
||||
);
|
||||
window.$gz.eventBus.$emit("notify-error", msg);
|
||||
} else {
|
||||
// //TODO: also need the other locale settings such as number and date formats etc
|
||||
// var localOffset = new Date().getTimezoneOffset();
|
||||
// if (localOffset != 0) {
|
||||
// localOffset = (localOffset / 60) * -1; //time is in minutes and reversed from what we want or expect
|
||||
// }
|
||||
|
||||
// if (res.data.timeZoneOffset != localOffset) {
|
||||
// //TODO: localize message and also actually have a fix for it here
|
||||
// //so this should be a confirm prompt but for now will just show it
|
||||
|
||||
// //for now just show the message
|
||||
// window.$gz.eventBus.$emit(
|
||||
// "notify-info",
|
||||
// "Time zone offset for your account is set to " +
|
||||
// res.data.timeZoneOffset +
|
||||
// " which doesn't match the local timezone offset of " +
|
||||
// localOffset,
|
||||
// window.$gz.store.state.helpUrl + "intro/#searching"
|
||||
// );
|
||||
// }
|
||||
|
||||
// window.$gz.eventBus.$emit("notify-success", "Success");
|
||||
// window.$gz.eventBus.$emit(
|
||||
// "notify-warning",
|
||||
// "This is a very long warning, it has a lot of text and goes on and on and on. Hard to understand why anyone would do it this way but whatever right?@!"
|
||||
// );
|
||||
// window.$gz.eventBus.$emit(
|
||||
// "notify-error",
|
||||
// "This is a medium error"
|
||||
// );
|
||||
|
||||
//Store offset in locale data
|
||||
//TODO: also need the other locale settings such as number and date formats etc to be added at server
|
||||
window.$gz.store.commit("setLocale", {
|
||||
decimalSeparator: ".",
|
||||
currencyName: "EUR",
|
||||
hour12: true,
|
||||
// shortDate: "YYYY-MM-DD",
|
||||
// shortTime: "hh:mm:ss A",
|
||||
// shortDateAndTime: "YYYY-MM-DD hh:mm:ss A",
|
||||
timeZoneOffset: res.data.timeZoneOffset
|
||||
languageOverride: "en-US",
|
||||
timeZoneOverride: "America/New_York",
|
||||
currencyName: "USD",
|
||||
hour12: true
|
||||
});
|
||||
|
||||
resolve();
|
||||
|
||||
Reference in New Issue
Block a user