Skip to content

Commit

Permalink
keses jelzese float ertekkel #98
Browse files Browse the repository at this point in the history
  • Loading branch information
lordblendi committed Nov 8, 2017
1 parent a494b15 commit 1400543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/deliverable.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default DS.Model.extend({
((this.get('deadline') - this.get('lastSubmittedDate')) > 0));
}),
delayCalculation: Ember.computed('deadline','uploaded', 'lastSubmittedDate', function(){
return moment(this.get('lastSubmittedDate')).diff(moment(this.get('deadline')),'hours');
return moment(this.get('lastSubmittedDate')).diff(moment(this.get('deadline')),'hours', true);
}),
downloadLink: Ember.computed('id', function () {
return `${config.backendUrl}/deliverables/${this.get('id')}/download`;
Expand Down

0 comments on commit 1400543

Please sign in to comment.