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

Commit 8058147

Browse files
committed
Stop using UTC dates internally
UTC conversion causes #15.
1 parent feee4a9 commit 8058147

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

addon/components/datepicker-support.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,14 @@ export default Ember.Mixin.create({
6565
if (event.date) {
6666
if (this.get('multidate')) {
6767
// set value to array if multidate
68-
isoDate = this.$().datepicker('getUTCDates').map(function(date) {
68+
isoDate = this.$().datepicker('getDates').map(function(date) {
6969
return date.toISOString();
7070
});
7171
}
7272
else {
73-
isoDate = this.$().datepicker('getUTCDate').toISOString();
73+
isoDate = this.$().datepicker('getDate').toISOString();
7474
}
7575
}
76-
7776
this.set('value', isoDate);
7877
},
7978

0 commit comments

Comments
 (0)