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

Calendar: Does not respect minDate in format 12h with timeOnly=true. #2607

Closed
DanielDRodrigues opened this issue Jan 25, 2022 · 1 comment
Closed
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@DanielDRodrigues
Copy link

There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

[X] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Codesandbox Case (Bug Reports)
Please fork the codesandbox below and create a case demonstrating your bug report. Issues without a codesandbox have much less possibility to be reviewed.

https://codesandbox.io/s/withered-fire-om08h

Current behavior

Basically, if I have calendar with minimun date with pm hour, the component allows change PM to AM when have a hourFormat={"12"}. With hourFormat={"24"} it's work well, and respect da minimum date.

Expected behavior

If I have minimum date, for example, "5-12-2024 15:00h", I expect that is not possible to change PM to AM, because the value would stay with "5-12-2024 03:00h" and is lower than the minimum.

Minimal reproduction of the problem with instructions

First calendar with 12h format:

  • Open first calendar.
  • Change PM to AM
  • And value is lower than the minimum

Second calendar with 24h format:

  • Open second calendar
  • And try put hour lower than the minimum
  • work correctly

Please tell us about your environment:

IntelliJ, Mac os, npm, webpack

  • React version:

17.0.2

  • PrimeReact version:

6.6.0

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

All

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
  • ES6
@yigitfindikli yigitfindikli added the Type: Bug Issue contains a defect related to a specific component. label Mar 28, 2022
@yigitfindikli yigitfindikli added this to the 8.0.0 milestone Mar 28, 2022
@DanielDRodrigues
Copy link
Author

When will the version 8.0 expected to be released?

@melloware melloware changed the title Calendar component don’t respect minDate in format 12h with timeOnly=true. Calendar: Does not respect minDate in format 12h with timeOnly=true. Apr 26, 2022
@mertsincan mertsincan assigned mertsincan and unassigned mcandu Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

4 participants