diff --git a/modules/ticket/front/sale/index.js b/modules/ticket/front/sale/index.js index 24b077476..b7cdc22b9 100644 --- a/modules/ticket/front/sale/index.js +++ b/modules/ticket/front/sale/index.js @@ -194,7 +194,10 @@ class Controller extends Section { } createClaim() { - const timeDifference = new Date().getTime() - new Date(this.ticket.shipped).getTime(); + const today = new Date(); + today.setHours(0, 0, 0, 0); + const timeDifference = today.getTime() - new Date(this.ticket.landed).getTime(); + const pastDays = Math.floor(timeDifference / 86400000); if (pastDays >= this.ticketConfig[0].daysForWarningClaim)