This commit is contained in:
Jonathan Chevalier
2022-10-19 17:57:46 +02:00
parent da9a5580bb
commit 725a0228cd
2 changed files with 15 additions and 6 deletions

View File

@@ -19,7 +19,8 @@ let date = {collectExpress: null, deliveryExpress: null, collectFacteur: null, d
const currentDay = format(today, 'e')
//const isWeekEnd = (currentDay === '7' || currentDay === '8')
if (format(today, 'HH') > 17) {
if (format(today, 'HH') > 16) {
date.collectExpress = date.deliveryExpress = tomorrow
} else {
date.collectExpress = date.deliveryExpress = today