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

Parse fails with altField #764

Closed
glittle opened this issue Sep 29, 2014 · 2 comments
Closed

Parse fails with altField #764

glittle opened this issue Sep 29, 2014 · 2 comments

Comments

@glittle
Copy link

glittle commented Sep 29, 2014

When I have an altField showing just time (default setting), then a Wrong time format log is shown in the console. It appears that this line (line 310):

var currDT = (this.$altInput && this._defaults.altFieldTimeOnly) ? this.$input.val() + ' ' + this.$altInput.val() : this.$input.val();

results in currDT being a single space, even though it is empty. Later code (line 1927) finds that there are two (empty) parts to the split string. This would be avoided if currDT was trimmed.

@trentrichardson
Copy link
Owner

You're saying trim on line 310 fixes the issue?

@glittle
Copy link
Author

glittle commented Sep 30, 2014

Yes, it helps with that particular issue.

Glen Little
Calgary, AB
email: glen.little@gmail.com cell: 403-402-7106
"Strive to perceive the nobility in every human being"

On Tue, Sep 30, 2014 at 9:04 AM, Trent Richardson notifications@github.com
wrote:

You're saying trim on line 310 fixes the issue?


Reply to this email directly or view it on GitHub
#764 (comment)
.

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