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

Commit

Permalink
Stop using UTC dates internally
Browse files Browse the repository at this point in the history
UTC conversion causes #15.
  • Loading branch information
soulim committed Mar 13, 2015
1 parent feee4a9 commit 8058147
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions addon/components/datepicker-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,14 @@ export default Ember.Mixin.create({
if (event.date) {
if (this.get('multidate')) {
// set value to array if multidate
isoDate = this.$().datepicker('getUTCDates').map(function(date) {
isoDate = this.$().datepicker('getDates').map(function(date) {
return date.toISOString();
});
}
else {
isoDate = this.$().datepicker('getUTCDate').toISOString();
isoDate = this.$().datepicker('getDate').toISOString();
}
}

this.set('value', isoDate);
},

Expand Down

0 comments on commit 8058147

Please sign in to comment.