Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: display Today for maxDate as today, handling seconds edge case too #7601

Merged

Conversation

suhailk4
Copy link
Contributor

@suhailk4 suhailk4 commented Jan 14, 2025

Defect Fixes

Fix #7598
Fix #7602
Updated the code for already merged PR: #7597

In the new PR it will handle edge case for time 23:59:55+ seconds .

Let's say if now Date() is executed at almost midnight and passed in prop (new Date()) is behind by few milliseconds/seconds then the fix ( #7597) added by me will fail for this case. I've added a buffer of 10 seconds in next PR that should be sufficient for today button to be visible even for this edge case.

When submitting a PR, please also create an issue documenting the error and manually link to an issue or mention it in the description using #<issue_id>.

Feature Requests

Due to company policy, we are unable to accept feature request PRs with significant changes as such cases has to be implemented by our team following our own processes.
Smaller scaled feature implementations such as adding a property to a component will be considered for merging.

Copy link

vercel bot commented Jan 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Updated (UTC)
primereact ⬜️ Ignored (Inspect) Visit Preview Jan 14, 2025 2:01pm
primereact-v9 ⬜️ Ignored (Inspect) Visit Preview Jan 14, 2025 2:01pm

Copy link

Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please manually link to an issue or mention it in the description using #<issue_id>.

Copy link

Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please manually link to an issue or mention it in the description using #<issue_id>.

Copy link

Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please manually link to an issue or mention it in the description using #<issue_id>.

1 similar comment
Copy link

Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please manually link to an issue or mention it in the description using #<issue_id>.

components/lib/calendar/Calendar.js Outdated Show resolved Hide resolved
@suhailk4 suhailk4 requested a review from melloware January 14, 2025 14:03
@melloware melloware merged commit bc5b911 into primefaces:master Jan 14, 2025
4 checks passed
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.

Today Button not visible for maxDate Today Button is hidden for maxDate with value as new Date()
2 participants