6 Commits

Author SHA1 Message Date
Jan Sandbrink 0b87e7543f Freeze string literals in specs
Rolling out frozen string literals further by freezing all
string literals in core specs.
2025-05-05 09:29:55 +02:00
Christophe Bliard 7661671465 [62891][63152] Recalculate start date when toggling "Working days only"
https://community.openproject.org/wp/62891

For an automatically scheduled successor, when "Working days only" is
turned off and the day before the start date is a non-working day, the
start will shift to an earlier date. Multiple things need to work
correctly:

- The start date must be recalculated and displayed in the date picker.
- The mini calendar of the date picker need to have enabled dates
  updated, as the start date has changed.
- If the due date was not set manually, duration must be kept and due
  date will be recalculated.
- If the due date was set manually, it must not be changed and duration
  will be recalculated.
- If the due date was unset manually, it must remain unset and duration
  must be unset too.

Also the lag calculation was partly incorrect: it was adding non-working
days when "Working days only" was on, and days when "Working days only"
was off. This has been fixed: lag is always about working days
regardless of the successor "Working days only" setting.

https://community.openproject.org/wp/63152

When the browser timezone offset is negative, the enabled dates in the
date picker for an automatically scheduled successor were not correct:
the date before the start date was enabled.

This is now fixed.
2025-04-09 11:45:03 -04:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Klaus Zanders 41a1ec0e3e Fix BCF comment tests to test for correct timestamps 2024-05-28 10:24:06 +02:00
Klaus Zanders 77f13d4964 Globally include time helpers 2024-05-28 10:24:06 +02:00
Klaus Zanders c584cea685 Add a dedicated time matcher and use it instead of be_within.of 2024-05-28 09:15:14 +02:00