Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 1962485

Browse files
committed
fix(datepickerPopup): change to toTimezone
- Change conversion to use `toTimezone`, as the date is going from UI date with timezone applied to timezone set by `ngModelOptions` Fixes #6235
1 parent 8a4f625 commit 1962485

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/datepickerPopup/popup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ function($scope, $element, $attrs, $compile, $log, $parse, $window, $document, $
333333
if (angular.isString(viewValue)) {
334334
var date = parseDateString(viewValue);
335335
if (!isNaN(date)) {
336-
return dateParser.fromTimezone(date, ngModelOptions.timezone);
336+
return dateParser.toTimezone(date, ngModelOptions.timezone);
337337
}
338338
}
339339

0 commit comments

Comments
 (0)