phpreport icon indicating copy to clipboard operation
phpreport copied to clipboard

Cannot create a holidays interval that ends today

Open jaragunde opened this issue 3 years ago • 1 comments

This is a problem in holidayManagement.php. Steps to reproduce, assuming today is 2021-12-08:

  1. Click on December 6.
  2. Click on December 8.

Expected: A holiday interval is created between 6 and 8. Actual: A single day is marked as holiday, the 8.

jaragunde avatar Dec 08 '21 07:12 jaragunde

Additional facts:

  • it doesn't happen if you try to create an interval starting on the 8th and ending later, e.g. 10.
  • If you click first on Dec 8, then on Dec 6, no interval will be created.

jaragunde avatar Dec 08 '21 07:12 jaragunde