This repository has been archived by the owner on May 29, 2019. It is now read-only.
Regression with handling of ng-model-options
timezone
option
#6105
Milestone
Bug description:
When using datePickerPopup with a
Date
model, andng-model-options
.timezone
set toUTC
, the model is still being handled in the browser timezone. This case seems to be working properly in v1.3.3.Link to minimally-working plunker that reproduces the issue:
http://plnkr.co/edit/n8j5znnVRbjHK0PlaNYw?p=preview
Note that the model is set to 1/1/2016 midnight UTC, yet the picker displays 12/31/2015 (if browser is behind UTC).
In addition, if you select new dates from the popup, the UTC label display above is mismatched from the date on the datepicker.
If you change the version of ui-bootstrap in the plunk from 2.0.0 to 1.3.3, the date correctly shows as 1/1/2016.
Version of Angular, UIBS, and Bootstrap
Angular: 1.5.x
UIBS: 2.0.0
Bootstrap: 3.2.x
The text was updated successfully, but these errors were encountered: