refs #5077 hours set 00:00:00 only when date change
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Alexandre Riera 2023-01-27 10:05:03 +01:00
parent daf3d4b52f
commit 35157207dd
1 changed files with 3 additions and 1 deletions

View File

@ -75,8 +75,10 @@ class Controller extends Component {
}
set shipped(value) {
if (new Date(this.ticket.shipped).toDateString() != value.toDateString())
value.setHours(0, 0, 0, 0);
this.ticket.shipped = value;
this.ticket.shipped.setHours(0, 0, 0, 0);
this.getLanded({
shipped: value,
addressFk: this.ticket.addressFk,