Skip to content

Commit ffa144b

Browse files
kushthedudeabhinavk96
authored andcommitted
Disabling the addition of one extra day in EndAtDate (#3021)
1 parent 7bf890b commit ffa144b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/utils/computed-helpers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ export const computedSegmentedLink = function(property) {
4646
export const computedDateTimeSplit = function(property, segmentFormat) {
4747
return computed(property, {
4848
get() {
49-
if (property === 'endsAt' && segmentFormat === 'date') {
50-
return moment(this.get(property)).add(1, 'days').format(getFormat(segmentFormat));
51-
}
49+
// if (property === 'endsAt' && segmentFormat === 'date') {
50+
// return moment(this.get(property)).add(1, 'days').format(getFormat(segmentFormat));
51+
// } The following line was adding one extra day to the endsAt Attribute . Commenting it to fix the issue .
5252
return moment(this.get(property)).format(getFormat(segmentFormat));
5353
},
5454
set(key, value) {

0 commit comments

Comments
 (0)