DEPRECATED This site contains the codebase for the AngularJS (1.x) implementation of the SKY UX framework. We no longer support this version of SKY UX, and we recommend that you use the latest version instead. https://developer.blackbaud.com/skyux/
MIT License
51
stars
68
forks
source link
bb-datepicker does not respect timezone offset for ISO 8601 string input #1056
I should be able to assign an ISO 8601 string with a timezone offset to the bb-datepicker model and have it respect the given timezone offset.
Actual behavior
Assigning an ISO 8601 string with a timezone offset to the bb-datepicker model results in a date field with the previous date, instead of the intended assigned date.
Expected behavior
I should be able to assign an ISO 8601 string with a timezone offset to the bb-datepicker model and have it respect the given timezone offset.
Actual behavior
Assigning an ISO 8601 string with a timezone offset to the bb-datepicker model results in a date field with the previous date, instead of the intended assigned date.
Steps to reproduce
Navigate to the plunker from the datepicker component page: http://skyux.developer.blackbaud.com/components/datepicker/
Set
self.date2 = '2017-07-31T00:00:00+00:00';
Notice that the Date field has the date listed as 7/30/2017 instead of 7/31/2017.
Plunker
http://plnkr.co/edit/wvjwsPDPsN60DeNfxgEA?p=preview