Next collection date can be incorrect in certain cases
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3583238. --> Reported by: [danchamp](https://www.drupal.org/user/1366502) Related to !43 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The date comparison used to determine the next collection date is unsound:</p> <p><a href="https://git.drupalcode.org/project/localgov_waste_collection/-/blob/1.x/src/Controller/WasteCollectionController.php?ref_type=heads#L202">https://git.drupalcode.org/project/localgov_waste_collection/-/blob/1.x/src/Controller/WasteCollectionController.php?ref_type=heads#L202</a></p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Use strtotime() on both sides of comparison to ensure consistent, reliable calculation.</p>
issue