Skip to content

Commit afe3679

Browse files
committedAug 14, 2019
fix: pass correct value to clock tick
closes #37
1 parent 8a00e65 commit afe3679

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎lib/src/timeago.directive.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class TimeagoDirective implements OnChanges, OnDestroy {
4343
this.clockSubscription.unsubscribe();
4444
this.clockSubscription = undefined;
4545
}
46-
this.clockSubscription = this.clock.tick(date)
46+
this.clockSubscription = this.clock.tick(this.date)
4747
.pipe(filter(() => this.live, this))
4848
.subscribe(() => this.stateChanges.next());
4949
} else {

‎lib/src/timeago.pipe.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class TimeagoPipe implements PipeTransform, OnDestroy {
6767
this.clockSubscription.unsubscribe();
6868
this.clockSubscription = undefined;
6969
}
70-
this.clockSubscription = this.clock.tick(date)
70+
this.clockSubscription = this.clock.tick(this.date)
7171
.pipe(filter(() => this.live, this))
7272
.subscribe(() => this.stateChanges.next());
7373
this.stateChanges.next();

0 commit comments

Comments
 (0)