fix patchAddress with date validFrom

This commit is contained in:
Mathieu Jaumotte 2021-08-08 22:27:39 +02:00
parent 1f8c343a89
commit 840ffe42a6
2 changed files with 1 additions and 3 deletions

View File

@ -508,7 +508,7 @@ export default {
addressId: this.entity.address.address_id, addressId: this.entity.address.address_id,
body: { body: {
validFrom: { validFrom: {
datetime: this.valid.from.toISOString().split('T')[0] datetime: `${this.valid.from.toISOString().split('T')[0]}T00:00:00+0100`
} }
}, },
backUrl: this.context.backUrl backUrl: this.context.backUrl

View File

@ -134,8 +134,6 @@ export default {
validFrom: { validFrom: {
set(value) { set(value) {
this.valid.from = ISOToDate(value); this.valid.from = ISOToDate(value);
//new Date().toISOString().split('T')[0];
}, },
get() { get() {
return dateToISO(this.valid.from); return dateToISO(this.valid.from);