-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 any date in April #376
Comments
I can not reproduce that. |
Seriously?! Steps to reproduce:
No Date is shown to be selected, the Chrome console will show the error that i previously included as a snapshot. |
This problem is happening to me too.
|
emouawad: I'm unable to replicate it using your steps. Same with Rodolfo Silva's steps. Both work fine for me. I wonder if it has something to do with language/location settings. E.g.: dd/mm/yy vs. mm/dd/yy, etc. |
There are several duplicate issues and I've never been able to reproduce them. If you are having this problem please post code to jsfiddle and verify that your example is broken there as well. You can fork this fiddle which uses the javascript (non-minified) and css from the doc site. |
I'm using this date format |
I did the example's test that you posted and gave an error. It did not work click on the date of November in the year 1992. |
the append error sounds like a jquery issue. Can you go to http://supportdetails.com/ and share the results? You can black out your IP |
with the exception of your browser and flash being out of date, the only difference is you're using Linux vs me using Win 8 |
I still can not reproduce it: Do you have special addons activated (prefill form or something like that)? |
@phaidon makes a good point. Can you try it in incognito mode and/or another browser? |
Updated the browser and the problem continues. I tried at the same with Firefox and forward. All special addons are disabled. |
I'm making this the primary issue for this problem and merge all these dups together. I still cannot reproduce the problem. Some have suggested this is a problem with timezones and DST. Please provide the TZ you're trying this from |
have any of you tried this with moment 2.7? |
Unfortunately, I hadn´t tried yet. My project is stalled. :( |
I wasn't able to reproduce his issue either. |
@lucasbsilva what version of moment have you tried? |
@Eonasdan the same one used in your demo website, 2.5.1, it also occurs in there. |
can you try 2.7 straight from their site? |
It's working normally now, thank you! :) |
@Eonasdan Apparently, the users complained that corresponds to the same timezone (America / Sao_Paulo -03:00). I am using the component together with momentjs version 2.5.1. I will try now with 2.7. |
I just merged a PR that changed the |
Not resolved. |
For me the problem still happen on the demo site If I navigate to october, the browser tab freeze. But the latest source works fine. The problem has to do with DST and probably this: https://code.google.com/p/v8/issues/detail?id=3116 My TZ is too "America/Sao_Paulo -03:00". |
is this resolved ? |
For me it only works with the following versions: bootstrap-datetimepicker: 2.1.32 |
so the code from development branch and moment 2.8.1 is still not working? |
Sorry, in version 2.8.x I have not tested yet, I want to test? |
yes please (remember to use the source version as the minified file is not updated on development branch) |
Ok, I will perform the tests and when you finish, I'll post the results. |
Tested every year and months discussed above and the problem was solved with the following versions: bootstrap-datetimepicker: 3.0.2 But the time is adding one hour, why? |
Please check with the current version on the development branch the /src/js/bootstrap-datetimepicker.js and moment 2.8.1 |
Ok, tested and is working well. ;) |
With development branch the time is correct. |
However, this message is appearing in the console: Deprecation warning: moment.lang is deprecated. Use moment.locale instead. |
Are you certain that you are using the latest source (not the minified version) from development branch? |
Yes I am using the development branch, the problem is in the file: bootstrap-datetimepicker.pt-BR |
Where is the folder "locales" in latest brach? |
The locales have been removed in favor of the locale files straight from moment |
ok, In my file "bootstrap-datetimepicker.pt-BR.js", I change the line "return moment.lang('pt-br', {" to "return moment.locale('pt-br', {" and now it´s ok :) it´s problem?? |
I downloaded the "moment-with-locales.min" file and it worked correctly. |
Unfortunately, now my model is no longer being updated when changed the date / time ..: ( |
I`am use this directive angular: angularModule.directive('dateTimePicker', function($filter) {
return {
require: 'ngModel',
link: function(scope, elem, attrs, ctrl) {
var formatBra = 'dd/MM/yyyy HH:mm';
var formatEng = 'yyyy-MM-ddTHH:mm';
var date = true;
var time = true;
var opt = { language: 'pt-BR', pickDate: true, pickTime: true };
var type = attrs.dateTimePicker;
if (type == 'date') {
formatBra = formatBra.substring(0,10);
formatEng = formatEng.substring(0,10);
opt = { language: 'pt-BR', pickDate: true, pickTime: false };
type = '-' + type;
} else if (type == 'time') {
formatBra = formatBra.substring(11);
formatEng = formatEng.substring(11);
opt = { language: 'pt-BR', pickDate: false, pickTime: true };
type = '-' + type;
}
ctrl.$formatters.unshift(function(modelValue) {
return $filter('date')(modelValue, formatBra);
});
ctrl.$parsers.unshift(function(viewValue) {
return $filter('date')(viewValue, formatEng);
});
var dtp = $('.datetimepicker' + type).datetimepicker( opt );
dtp.on('change.dp', function(e) {
if (e.date != undefined) {
ctrl.$setViewValue(e.date._d);
scope.$apply();
}
});
}
}
}); |
dtp.on('change.dp'... -> dtp.on('dp.change'... |
if you still has problems please open a new issue |
\o/ Resolved!! Tnank´s!! |
…d min file count
Unable to select any date In month of April, not in my application, not even in your own demo at: http://eonasdan.github.io/bootstrap-datetimepicker/ which freezes the whole browser (Chrome)
Variable a is null in function v.
The text was updated successfully, but these errors were encountered: