This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user