Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

bb-datepicker does not respect timezone offset for ISO 8601 string input #1056

Open
Blackbaud-SarahMalick opened this issue Aug 1, 2017 · 1 comment

Comments

@Blackbaud-SarahMalick
Copy link

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

  1. Navigate to the plunker from the datepicker component page: http://skyux.developer.blackbaud.com/components/datepicker/

  2. Set self.date2 = '2017-07-31T00:00:00+00:00';

  3. Notice that the Date field has the date listed as 7/30/2017 instead of 7/31/2017.

    • Note: the date field will say 7/30/2017 regardless of the offset specified (+/- xx:xx).

Plunker

http://plnkr.co/edit/wvjwsPDPsN60DeNfxgEA?p=preview

@Blackbaud-SarahMalick Blackbaud-SarahMalick changed the title bb-datepicker bb-datepicker does not respect timezone offset for ISO 8601 string input Aug 1, 2017
@Blackbaud-PatrickOFriel
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants