-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
5 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4432f7a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will test this later today and see if it works.
4432f7a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! If you have a working solution and the tests pass please open a new PR!
4432f7a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to find the code above in my datepicker.js but could not find it.
Is there a place where I can find an updated file ?
I am using version 1.3.21 I think the code above may be from a different version, if so which one is it and where can I download it?
4432f7a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can find this state in the latest RC (1.7.0-RC1) or in the master branch. These are changes/fixes only applied to 1.7.0 and not backported to older versions
4432f7a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to confirm, is this the latest code ?
https://github.com/uxsolutions/bootstrap-datepicker/blob/master/js/bootstrap-datepicker.js
4432f7a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes indeed!
4432f7a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One silly questions. I am new to Github so I am learning how this work, from the proposed code above I understand I should add the code in red on top of the code in green found in the original file?
If this is the case the fix did not work. I typed the first full date mm/dd/yyyy, then I started typing the end date and when I got to the year the last two digits of the start date were removed :(
4432f7a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no silly questions here ;)
This is the revert commit so you should look at PR #1891 to see the original changes made to fix this issue. But the test are failing with the changes in the PR.
4432f7a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct. RC (1.7.0-RC1) Doesn't work. I am using the latest code in the main fork and that code doesn't actually check to make sure the second date is later than the first one and in fact by using the code in the main fork the rest of the scripts in my page stopped working (date format validation).
Is there a version of this script that is proven to work after 1.3 ? If so
Is there a way to simply disable reformatting the first date ?
I can add a separate piece of code to do this check on my own.