Posted 13 October 2020, 7:42 pm EST
Dear Wijmo Team,
I have an issue, where a date is off by one day after I access an item from CollectionView.
A user enters a date into a cell that is from type date, e.g. 20991226.
The output is:
this.flexdata.selectedItems[0].date: Sat Dec 26 2099 00:00:00 GMT+0100 (Mitteleuropäische Normalzeit)
But when I send the changed item to the server, the date of the item from sourcecollection is:
“2099-12-25T23:00:00.000Z”
for (let i = 0; i < this.data.items.length; i++) {
let tmpItem = this.data.items[i];
console.log(tmpItem.date);
if (!tmpItem['id'] && tmpItem['guid']) {
let convertedItem = Utils.convertFromNative2Katalogwert(tmpItem, this.katalogAttributeMap);
createdItems.push(convertedItem);
}
}
this.apiService.send(createdItems);
Is there a place where a transformation happens internally?