@infrab4a/connect-angular 4.2.3-beta.0 → 4.2.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1386,9 +1386,9 @@ class CartService {
1386
1386
  return { ...checkout, lineItems: notGiftItems };
1387
1387
  const elegibleCampaigns = [];
1388
1388
  for (const campaign of campaigns) {
1389
- const today = new Date().getDate();
1390
- console.log('camapings validation dade', 'today is', today, 'startDate', campaign.startDate.getDate(), !(campaign.startDate.getDate() <= today), 'endDate', campaign.endDate.getDate(), !(campaign.endDate.getDate() >= today), campaign.name);
1391
- if (!(campaign.startDate.getDate() <= today) && !(campaign.endDate.getDate() >= today))
1389
+ const today = new Date().getTime();
1390
+ console.log('camapings validation dade', 'today is', today, 'startDate', campaign.startDate.getTime(), !(campaign.startDate.getTime() <= today), 'endDate', campaign.endDate.getTime(), !(campaign.endDate.getTime() >= today), campaign.name);
1391
+ if (!(campaign.startDate.getTime() <= today) && !(campaign.endDate.getTime() >= today))
1392
1392
  continue;
1393
1393
  if (campaign.activeCategory) {
1394
1394
  const categoriesCampaing = campaign.categories.map((c) => c.id.toString());