This commit is contained in:
@@ -188,6 +188,19 @@ export default {
|
|||||||
.toString();
|
.toString();
|
||||||
},
|
},
|
||||||
///////////////////////////////////////////////
|
///////////////////////////////////////////////
|
||||||
|
// Local now timestamp converted to timeZoneName
|
||||||
|
// and output as ISO 8601
|
||||||
|
// (used to inform server of local client time)
|
||||||
|
//
|
||||||
|
clientLocalZoneTimeStamp(timeZoneName) {
|
||||||
|
if (!timeZoneName) {
|
||||||
|
timeZoneName = this.getBrowserTimeZoneName();
|
||||||
|
}
|
||||||
|
return window.$gz.DateTime.local()
|
||||||
|
.setZone(timeZoneName)
|
||||||
|
.toString();
|
||||||
|
},
|
||||||
|
///////////////////////////////////////////////
|
||||||
// Get default start date time in api format
|
// Get default start date time in api format
|
||||||
// (this is used to centralize and for future)
|
// (this is used to centralize and for future)
|
||||||
defaultStartDateTime(ofType) {
|
defaultStartDateTime(ofType) {
|
||||||
|
|||||||
@@ -518,7 +518,7 @@ export default {
|
|||||||
if (item.fk == "customername") {
|
if (item.fk == "customername") {
|
||||||
clr = "primary";
|
clr = "primary";
|
||||||
}
|
}
|
||||||
console.log("filter color:", { name: item.fk, clr: clr });
|
|
||||||
return clr;
|
return clr;
|
||||||
},
|
},
|
||||||
keyArrayFromSortByArray(sortBy) {
|
keyArrayFromSortByArray(sortBy) {
|
||||||
@@ -724,7 +724,7 @@ export default {
|
|||||||
dataListKey: vm.dataListKey,
|
dataListKey: vm.dataListKey,
|
||||||
listView: untokenizedListView,
|
listView: untokenizedListView,
|
||||||
clientCriteria: vm.clientCriteria,
|
clientCriteria: vm.clientCriteria,
|
||||||
clientTimeStamp: new Date()
|
clientTimeStamp: window.$gz.locale.clientLocalZoneTimeStamp()
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user