Closed Atala closed 1 month ago
@alexsegura @vladimir-8
range.diff('days') === 0
If that's a way to check if it's today
or not, then may be we should use something like moment('2010-01-01').isSame('2010-02-01', 'day');
instead
it is a way to check if the delivery dropoff is spanning on more than one days so this or moment(range.start).isSame(range.end, 'day') should do the same
delivery starts at 2024-10-03T15:08:00.000Z now is 2024-10-02T15:41:37.034
-> the delivery is for tomorrow but in Delivery.js it is displayed as "for today"
the problem lies in makeLabel function I think. the calendarFormat function don't do what you think it does.