This commit is contained in:
@@ -784,7 +784,7 @@ export default function initialize() {
|
|||||||
window.$gz.store.commit("setLocale", {
|
window.$gz.store.commit("setLocale", {
|
||||||
decimalSeparator: ".",
|
decimalSeparator: ".",
|
||||||
currencySymbol: "$",
|
currencySymbol: "$",
|
||||||
hour12: false,
|
hour12: true,
|
||||||
// shortDate: "YYYY-MM-DD",
|
// shortDate: "YYYY-MM-DD",
|
||||||
// shortTime: "hh:mm:ss A",
|
// shortTime: "hh:mm:ss A",
|
||||||
// shortDateAndTime: "YYYY-MM-DD 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:"America/Vancouver"}));
|
||||||
//console.log(new Date().toLocaleTimeString('sv-SE',{timeZone:"UTC"}));
|
//console.log(new Date().toLocaleTimeString('sv-SE',{timeZone:"UTC"}));
|
||||||
get() {
|
get() {
|
||||||
if (this.value) {
|
return window.$gz.locale.utcDateStringTo8601TimeOnlyString(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 "";
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
set(value) {
|
set(value) {
|
||||||
//this.value = value;
|
//this.value = value;
|
||||||
|
|||||||
Reference in New Issue
Block a user