This commit is contained in:
@@ -209,25 +209,6 @@ export default {
|
|||||||
let ret = window.$gz.DateTime.local()
|
let ret = window.$gz.DateTime.local()
|
||||||
.setZone(timeZoneName)
|
.setZone(timeZoneName)
|
||||||
.toString();
|
.toString();
|
||||||
console.log("clientlocatimeblahblah", ret);
|
|
||||||
// let l = new Date();
|
|
||||||
|
|
||||||
// //DateTime.fromISO("2017-05-15T09:10:23", { zone: "Europe/Paris" });
|
|
||||||
// let ret = window.$gz.DateTime.fromObject({
|
|
||||||
// zone: timeZoneName,
|
|
||||||
// year: l.getFullYear(),
|
|
||||||
// month: l.getMonth() + 1,
|
|
||||||
// day: l.getDate(),
|
|
||||||
// hour: l.getHours(),
|
|
||||||
// minute: l.getMinutes(),
|
|
||||||
// second: l.getSeconds(),
|
|
||||||
// millisecond: l.getMilliseconds()
|
|
||||||
// });
|
|
||||||
|
|
||||||
// console.log("clientLocalZoneTimeStamp", {
|
|
||||||
// zoneName: timeZoneName,
|
|
||||||
// ret: ret
|
|
||||||
// });
|
|
||||||
return ret;
|
return ret;
|
||||||
},
|
},
|
||||||
///////////////////////////////////////////////
|
///////////////////////////////////////////////
|
||||||
|
|||||||
@@ -389,6 +389,7 @@ export default {
|
|||||||
records: [],
|
records: [],
|
||||||
rowsPerPageItems: [5, 10, 25, 50, 100],
|
rowsPerPageItems: [5, 10, 25, 50, 100],
|
||||||
selected: [],
|
selected: [],
|
||||||
|
timeZoneName: null,
|
||||||
formState: {
|
formState: {
|
||||||
ready: false,
|
ready: false,
|
||||||
dirty: false,
|
dirty: false,
|
||||||
@@ -724,7 +725,9 @@ export default {
|
|||||||
dataListKey: vm.dataListKey,
|
dataListKey: vm.dataListKey,
|
||||||
listView: untokenizedListView,
|
listView: untokenizedListView,
|
||||||
clientCriteria: vm.clientCriteria,
|
clientCriteria: vm.clientCriteria,
|
||||||
clientTimeStamp: window.$gz.locale.clientLocalZoneTimeStamp()
|
clientTimeStamp: window.$gz.locale.clientLocalZoneTimeStamp(
|
||||||
|
vm.timeZoneName
|
||||||
|
)
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
@@ -1051,6 +1054,7 @@ async function fetchEnums(columnData) {
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
async function initForm(vm) {
|
async function initForm(vm) {
|
||||||
|
vm.timeZoneName = window.$gz.locale.getResolvedTimeZoneName();
|
||||||
await populateSelectionLists(vm);
|
await populateSelectionLists(vm);
|
||||||
await loadFormSettings(vm);
|
await loadFormSettings(vm);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user