angular-ui / bootstrap

PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
http://angular-ui.github.io/bootstrap/
MIT License
14.29k stars 6.73k forks source link

Parsing Date using timezone from ngModelOptions #6436

Closed ksiwak2e closed 7 years ago

ksiwak2e commented 7 years ago

I found problem after upgrade version of anngular from 1.5.8 to 1.6. They change structure of ngModelOptions. Now we get the option by getter.

In datepickerPopup/popup.js we have line: return dateParser.toTimezone(date, ngModelOptions.timezone); but ngModelOptions.timezone is undefined. In version 1.6 of angular we should use: ngModelOptions.options.timezone or use getter ngModelOptions.getOption('timezone').

Tha problem in gui is that date is parse valid and sometimes date in datePicker is different that this in model object.

Best regards.

icfantv commented 7 years ago

Please be respectful of our time and processes by adhering to the issue template. As we are all volunteers, we simply do not have the time to chase every incomplete issue entered by users. As such, I apologize, but I am going to close this until you comply. Thanks.