--since not working
--since gives the same result regardless of data or 'yesterday' parameter.
future dates are also accepted.
Thanks
Hello, we tried to solve the issue.
This is what we did:
This change addresses the issue where the --since parameter gives the same result regardless of the date or 'yesterday' parameter. It also adds validation for future dates. The modifications include:
- Updated the parseSinceDate function to handle 'yesterday' and specific dates correctly.
- Added a new function validateAndAdjustDates to ensure that the 'since' date is not in the future and is before the 'until' date.
- Modified the main function to use the new validateAndAdjustDates function.
- Updated the getCommits function to properly filter commits based on the since and until dates.
These changes ensure that the --since parameter works as expected and future dates are not accepted.
You can review changes in this commit: https://github.com/endic-sam928281/kimmobrunfeldt-git-hours-80/commit/d66081139e1f6102af22134993992e49a6751454.
[!CAUTION] Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.
Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.