-
Notifications
You must be signed in to change notification settings - Fork 350
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
date picker - Invalid parameter not satisfying: date #134
Comments
+1 |
5 days later..... |
Hi! Sorry, I haven't time for it. |
Hi, Below is a option to address the issue, but does not address the route cause. When the date picker function is called for first onclick event it works fine. But when I debugged the code for the second click somehow self.datePicker.date was getting updated with garbage value @"NaN-NaN-NaNTNaN:NaN:00Z" value ( DatePicker.m file). Appreciate any feedback and improvements. |
@RohiniBasavarajNataraj good advise! i think the dateString is the selected date after open again but im not good at oc 0_0 |
@RohiniBasavarajNataraj |
It's working for me too ! I made a pull-request with @RohiniBasavarajNataraj fix: #177 |
but i got error on second firing after modifying Date.m . NSInternalInconsistencyException : Invalid parameter not satisfying:date |
Hi,
pickerDate function is called on onclick event.
Code shows the date picker for twice and then shows Invalid parameter not satisfying: date exception in Xcode. Please help
Please see the below code
var options = {
date: new Date(),
locale: "en_us"
mode : 'date',
allowOldDates: false,
allowFutureDates: true,
doneButtonLabel: 'DONE',
cancelButtonLabel: 'CANCEL'
};
function onSuccess(date) {
alert(date);
}
function onError(error) { // Android only
alert('Error: ' + error);
}
$scope.pickerDate = function() {
alert("date");
datePicker.show(options, onSuccess, onError);
};
Thanks in advance.
The text was updated successfully, but these errors were encountered: