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

Unable to select end date when using date range in a specific case #130

Open
rahulgadhyan opened this issue May 13, 2018 · 7 comments
Open

Comments

@rahulgadhyan
Copy link

I am using start date and end date selection range with following condition:

  1. end date cannot be less than start date

If the current system time is in AM, say 13/05/2018, 09:00 AM and i want to select date range as 12/05/2018-10:00PM to 12/05/2018-11:00PM.

After Selecting start date-time as 12/05/2018-10:00PM, i am not able to select end date-time as 12/05/2018-11:00PM because when I open the end date-time picker, it shown todays date, ie 13th (and time as 9:00 AM). and if I try to select 12th, it cannot select as 12/5/18, 9:00 AM is lesser than start date already selected.

I would like to know if there is a way to work around this particular isssue
Thanks

@hexadecy
Copy link

Can you paste some template code and why the end date-time is set to today?

@rahulgadhyan
Copy link
Author

rahulgadhyan commented May 17, 2018 via email

hexadecy added a commit to beenote/angular-material-datetimepicker that referenced this issue May 18, 2018
@hexadecy
Copy link

What version are you using? v1.15.1 ?

I tried to reproduce it with you code, but it's working as I think it should.

  1. I set manually my system time to 17/5/18 - 9:00 AM
  2. start: 16/5/18, 10:00 PM
  3. end: 16/5/18, 11:00 PM
  4. go to change end again, but I clicked "today"
  5. Then change date to 16/5/18 and the time stay at 9:00 AM
  6. Cannot change time, but I can click on PM circle
  7. Then I can only select 10 PM or 11PM in hours. Max 11:59PM

Please see my video of this:
https://drive.google.com/file/d/1M-y5GL_SpNVzTdoaNmm_xuOiA866cMbh/view?usp=sharing

@hexadecy
Copy link

@rahulgadhyan have you found something?

@rahulgadhyan
Copy link
Author

rahulgadhyan commented Jun 5, 2018 via email

@hexadecy
Copy link

hexadecy commented Oct 8, 2018

Yes @rahulgadhyan you can record a video with something like Screencastify.
And add many info as you can on how to reproduce it.

@hexadecy
Copy link

I fixed this in beenote#54.

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

No branches or pull requests

2 participants