Skip to content

Fix/daterange filter#6

Open
apple-bears wants to merge 2 commits intoswe-productivity:developfrom
apple-bears:fix/daterange-filter
Open

Fix/daterange filter#6
apple-bears wants to merge 2 commits intoswe-productivity:developfrom
apple-bears:fix/daterange-filter

Conversation

@apple-bears
Copy link
Copy Markdown

Issue Number

closes #5

Updates

  • Fixed the issue — changed 2999-12-31 23:59:59 to 2037-12-31 23:59:59 in Filter.php
  • Added tests — 6 new tests covering the fix

- Implement tests for various scenarios including only start date, only end date, both dates, null input, and invalid date format.
- Ensure default end date is set to 2037-12-31 and is within MySQL TIMESTAMP limits.
- Validate that the filter behaves correctly with different input conditions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Daterange filter uses invalid max timestamp for MySQL compatibility

1 participant