This commit is contained in:
2020-02-06 23:04:14 +00:00
parent 742fad6125
commit cce6bdc8c6
2 changed files with 2 additions and 9 deletions

View File

@@ -784,7 +784,7 @@ export default function initialize() {
window.$gz.store.commit("setLocale", {
decimalSeparator: ".",
currencySymbol: "$",
hour12: false,
hour12: true,
// shortDate: "YYYY-MM-DD",
// shortTime: "hh:mm:ss A",
// shortDateAndTime: "YYYY-MM-DD hh:mm:ss A",

View File

@@ -232,14 +232,7 @@ export default {
//console.log(new Date().toLocaleTimeString('sv-SE',{timeZone:"America/Vancouver"}));
//console.log(new Date().toLocaleTimeString('sv-SE',{timeZone:"UTC"}));
get() {
if (this.value) {
//Ok, this looks weird but sv-SE is the same format as iso8601 format required so if this breaks that's why
return new Date(this.value).toLocaleTimeString("sv-SE", {
timeZone: this.timeZoneName
});
} else {
return "";
}
return window.$gz.locale.utcDateStringTo8601TimeOnlyString(this.value);
},
set(value) {
//this.value = value;