diff --git a/src/UI/Calendar/CalendarView.js b/src/UI/Calendar/CalendarView.js index 3378da240..14dc6f3f9 100644 --- a/src/UI/Calendar/CalendarView.js +++ b/src/UI/Calendar/CalendarView.js @@ -10,11 +10,10 @@ define( 'System/StatusModel', 'History/Queue/QueueCollection', 'Config', - 'Shared/FormatHelpers', 'Mixins/backbone.signalr.mixin', 'fullcalendar', 'jquery.easypiechart' - ], function ($, vent, Marionette, moment, CalendarCollection, StatusModel, QueueCollection, Config, FormatHelpers) { + ], function ($, vent, Marionette, moment, CalendarCollection, StatusModel, QueueCollection, Config) { return Marionette.ItemView.extend({ storageKey: 'calendar.view', @@ -171,7 +170,7 @@ define( return undefined; } - return new moment(pending.get('estimatedCompletionTime')).fromNow(); + return moment(pending.get('estimatedCompletionTime')).fromNow(); }, _getReleaseTitle: function (element) { diff --git a/src/UI/History/Queue/TimeleftCell.js b/src/UI/History/Queue/TimeleftCell.js index 892ed690d..cd592615b 100644 --- a/src/UI/History/Queue/TimeleftCell.js +++ b/src/UI/History/Queue/TimeleftCell.js @@ -5,7 +5,7 @@ define( 'Cells/NzbDroneCell', 'filesize', 'moment' - ], function (NzbDroneCell, fileSize, Moment) { + ], function (NzbDroneCell, fileSize, moment) { return NzbDroneCell.extend({ className: 'timeleft-cell', @@ -18,7 +18,7 @@ define( //If the release is pending we want to use the timeleft as the time it will be processed at if (this.cellValue.get('status').toLowerCase() === 'pending') { this.$el.html('-'); - this.$el.attr('title', 'Will be processed {0}'.format(new Moment(this.cellValue.get('estimatedCompletionTime')).calendar())); + this.$el.attr('title', 'Will be processed {0}'.format(moment(this.cellValue.get('estimatedCompletionTime')).calendar())); this.$el.attr('data-container', 'body'); return this;